[求教]怎么样由图形处理下退出后回到原分辨率
怎么样由图形处理下退出后回到原分辨率,源码如下:#include<graphics.h>
main()
{
int gdriver,gmode,i;
detectgraph(&gdriver,&gmode);
printf("the driver is %d,mode is %d\n",gdriver,gmode);
getch();
initgraph(&gdriver,&gmode,"g:\\turboc\lib");
setviewport(5,5,400,400,1);
setbkcolor(GREEN);
cleardevice();
for(i=0;i<=15;i++)
{
setcolor(i);
circle(320,240,20+i*10);
delay(100);
}
getch();
closegraph();
}