#include<graphics.h>
void main()
{
int gdriver,gmode,n,i,arw[10]={100,100,171,171,100,241,29,171,100,100},arm[10]={100,100,200,200,300,200,200,100,100,100},arm2[10]={100,100,100,200,200,300,200,200,100,100},m,j;
gdriver=VGA;
gmode=VGAHI;
initgraph(&gdriver,&gmode,"c:\\tc");
rectangle(100,100,200,200);
loop:for(;;)
{
printf(" 1:ping yi bian huan\n");
printf(" 2:bi li bian huan\n");
printf(" 3:xuan zhuan bian huan\n");
printf(" 4:dui cheng bian huan\n");
printf(" 5:cuo qie bian huan\n");
printf(" 6:tui chu\n");
printf(" please input n:");
scanf("%d",&n);
printf("\n");
switch(n)
{
case 1:printf(" please input increasement i:");
scanf("%d",&i);
cleardevice();
rectangle(100+i,100,200+i,200);
break;
case 2:printf(" please input zoom out i:");
scanf("%d",&i);
cleardevice();
rectangle(100,100,200*i,200*i);
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余2页未读,立即下载