資源簡介
一個用c語言編程小游戲
不是個本人做出來的
個人覺得不錯,拿出來和大家分享。
在此感謝原創作者
不是個本人做出來的
個人覺得不錯,拿出來和大家分享。
在此感謝原創作者
代碼片段和文件信息
#include?
#include?
#include?
/*
Menu()
Exit()
main()
*/
void?Menu()
{
cleardevice();
setcolor(YELLOW);
setfont(640_T(“黑體“));//_T自適應,L==_T();
outtextxy(160?50?L“打字游戲“);
setcolor(WHITE);
setfont(160_T(“宋體“));
outtextxy(100200_T(“潭州教育“));
outtextxy(100?240?_T(“簡單的打字系統“));
outtextxy(100?280?_T(“Version?1.0“));
outtextxy(100?320?_T(“歡迎修改,修改后交作業“));
//按任意鍵繼續
int?c?=?255;
while?(!kbhit())
{
setcolor(RGB(c?0?0));
outtextxy(280?400?_T(“按任意鍵繼續“));
c?=?c?-?8;
if?(c?0)?c?=?255;
Sleep(20);
}
getch();//getchar()
cleardevice();
}
void?Exit()
{
cleardevice();
setcolor(YELLOW);
setfont(48?0?_T(“黑體“));
outtextxy(104180L“人人為師,終生學習“);//自適應,_T?L自適應
getch();
}
voi
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1710??2005-03-05?19:09??打字游戲.cpp
-----------?---------??----------?-----??----
?????????????????1710????????????????????1
- 上一篇:C與C++開發實例
- 下一篇:C++庫函數查詢手冊
評論
共有 條評論