closegra.c

来自「vc library 韩国语版 希望对大家又帮助」· C语言 代码 · 共 21 行

C
21
字号
#include <stdio.h>
#include <graphics.h>
#include <conio.h>
void main()
{
int gd=0,gm;

clrscr();
printf("Now you are in text mode\n");
printf("Press any key to enter graphic mode\n");
getch();
initgraph(&gd,&gm,"");
circle(320,300,50);
outtextxy(100,100,"Now you are in graphic mode");
outtextxy(100,140,"Press any key to return text mode");
getch();
closegraph();
printf("Now return text mode\n");
getch();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?