69,369
社区成员
发帖
与我相关
我的任务
分享
#include "stdafx.h"
#include <graphics.h>
int main(int argc, char* argv[])
{
int graphdriver = DETECT;
int graphmode;
initgraph(&graphdriver, &graphmode, "");
cleardevice();
for(int i=20; i<=300; i+=16)
{
putpixel(i, 20, 1);
putpixel(i+4, 20, 2);
}
getch();
closegraph();
return 0;
}
fatal error C1083: Cannot open include file: 'graphics.h': No such file or directory