vc6.0部分函数不能使用

0

报错提示error C2065: 'settextstyle' : undeclared identifier

#include<graphics.h>
#include<stdlib.h>
#include<math.h>
#include<conio.h>
#include<stdio.h>
int main()
{
	initgraph(640,480);//设置背景
	setbkcolor(RGB(254,214,0));
	cleardevice();
    settextstyle(5,5,"楷体");//用于设置字体
    outtextxy(200,200,"1");

	while(1)
	{
	}
	return 0;
}
ava
汉广

2022-2-4

0

到 easyx 官网下载并安装 easyx 试试,估计你没装好。

官网地址:https://easyx.cn

ava
慢羊羊

2022-2-4

只是少部分函数用不了,去官网下载了之后之前的被覆盖了,现在是什么都出不来了( -  汉广  2022-2-4
@汉广 贴出具体的错误提示,以及对应的代码,这样才能帮你找到问题。 -  慢羊羊  2022-2-5
技术讨论社区