#include "graphics.h"
int main(){
int answer = 0;
initgraph(800,600);
xyprintf(1,2,"是否读取文件?");
answer = getInteger();
if (0 == answer) xyprintf(1, 21, "未读取");
else if(1==answer) xyprintf(1, 21, "已读取");
xyprintf(1, 1, "欢迎您进入 郭一卿画板,请根据菜单选择您想进行的操作:");
xyprintf(1, 41, "1.清除屏幕");
xyprintf(1, 61, "2.作画");
xyprintf(1, 81, "3.退出");
do{
answer = getInteger();
cleardevice();
switch (answer){
case1:cleardevice();
break;
case2:xyprintf(1, 101, "您想作什么图形?");
xyprintf(1, 121, "您想使用什么颜色?");
break;
case3:break;
default:break;
}
}while (3 != answer);
closegraph();
}
海绵宝宝撒