|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
#include <stdio.h>
#include <graphics.h>
#include <time.h>
void main()
{
int i, gdriver, gmode;
time_t curtime;
char s[30];
gdriver = DETECT;
initgraph(&gdriver, &gmode,"");
setbkcolor(BLUE);
cleardevice();
setviewport(100, 100,580, 380, 1);
setfillstyle(1, 2);
setcolor(15);
rectangle(0, 0, 480, 280);
floodfill(50, 50, 15);
setcolor(12);
settextstyle(1, 0, 7);
outtextxy(20, 20, "Hello China");
setcolor(15);
settextstyle(3, 0, 6);
outtextxy(120, 85, "Hello China");
setcolor(14);
settextstyle(2, 0, 8);
sprintf("Now is %s", ctime(&curtime));
outtextxy(20, 150, s);
setcolor(1);
outtextxy(50, 220, s);
getch();
exit(0);
}
Cannot open include file: 'graphics.h': No such file or directory什么意思,缺什么软件 |
|