⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setgrmod.c

📁 vc library 韩国语版 希望对大家又帮助
💻 C
字号:
#include <stdio.h>
#include <graphics.h>
#include <conio.h>
void main()
{
int gd=0,gm;
int gmode;
char str[100];
initgraph(&gd,&gm,"");
gmode=getgraphmode();
sprintf(str,"now in graphic mode %d",gmode);
outtextxy(100,100,str);
sprintf(str,"Press any key to go to text mode");
outtextxy(100,120,str);
getch();
restorecrtmode();
printf("now in text mode\n");
printf("press any key to return to graphic mode");
getch();
setgraphmode(gmode);
sprintf(str,"now in graphic mode again");
outtextxy(100,140,str);
getch();
closegraph();
}

⌨️ 快捷键说明

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