📄 funtc120b.dat
字号:
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
char *dname[] = {"requests detection", "a CGA","an MCGA","an EGA",
"a 64K EGA","a monochrome EGA","an IBM 8514",
"a Hercules monochrome","an AT&T 6300 PC","a VGA",
"an IBM 3270 PC"};
int main(void)
{
int gdriver, gmode, errorcode;
detectgraph(&gdriver, &gmode);
errorcode = graphresult();
if (errorcode != grOk)
{
printf("Graphics error: %s",grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1);
}
clrscr();
printf("You have %s video display card.", dname[gdriver]);
printf("Press any key to halt:");
getch();
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -