?? al13_3.c
字號:
/*案例代碼文件名:AL13_3.C*/
/*功能:檢測圖形顯示卡的類型*/
#include "graphics.h"
char *devicename[]={"Autodetect","CGA","MCGA","EGA","EGA64","EGAMONO",
"RESERVED","HERCMONO","ATT400","VGA","PC3270"};
main()
{int driver, mode;
detectgraph(&driver, &mode);
clrscr();
if(driver == -2)
printf("There's no graphic adapter in the system\n");
else
printf("You have %s video display card \n",devicename[driver]);
printf("Press any key to continue!");
getch();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -