例4-1.c
来自「C语言高级编程及实例剖析/王为青, 刘变红编著 ISBN号: 978-7」· C语言 代码 · 共 18 行
C
18 行
/* Note:Your choice is C IDE */
#include <stdio.h>
#include <graphics.h>
main()
{
int graphdriver,CGA;
int graphmode,CGAC0,x;
initgraph(&graphdriver,&graphmode,"");
cleardevice();
for(x=20;x<=300;x+=16)
{
putpixel(x,20,1);
putpixel(x+4,20,2);
}
getch();
closegraph();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?