資源簡介
紙牌游戲——21點,C++實現,經過測試,絕對可用噢
代碼片段和文件信息
//?文件路徑名:game_of_21_point\main.h?
#include?“utility.h“ //?實用程序軟件包
#include?“game_of_21_point.h“ //?21點游戲
int?main(void)
{
????cout<<“\t※※※※※※※※※※歡迎進入21點游戲世界!※※※※※※※※※※\n\n“;
cout<<“\t\t??游戲規則:\n“;?
cout< cout<<“\t\t??1.莊家對付1~7個玩家;\n“;
cout< cout<<“\t\t??2.如果牌點數的總數超過21點則暴點,自動判輸;\n“;
cout< cout<<“\t\t??3.A充當1分或者11點,J、Q、K人頭牌都是10點;\n“;
cout< cout<<“\t\t??4.計算機方在大于等于16點時不再要牌。\n“;
cout< cout<<“\t※※※※※※※※※※※※※??祝您好運!?※※※※※※※※※※※\n“;
cout< bool?bYes; //?用于接受用戶回答是否再次玩游戲
do
{
GameOf21Point?objGame; //??21點游戲對象
objGame.Game(); //?運行游戲
cout?<“你想再玩一次嗎“;
bYes?=?UserSaysYes(); //?接受用戶回答
}?while?(bYes);
system(“PAUSE“); //?調用庫函數system()
return?0; //?返回值0?返回操作系統
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????323680??2009-07-02?20:19??game_of_21_point可用\Debug\main.ilk
?????文件?????525312??2009-07-02?20:19??game_of_21_point可用\Debug\main.pdb
?????文件??????91136??2009-07-02?22:02??game_of_21_point可用\Debug\vc60.idb
?????文件??????69632??2009-07-02?22:02??game_of_21_point可用\Debug\vc60.pdb
?????文件?????391472??2009-07-02?22:02??game_of_21_point可用\Debug\game_of_21_point.ilk
?????文件?????266319??2009-07-02?22:02??game_of_21_point可用\Debug\game_of_21_point.exe
?????文件?????656384??2009-07-02?22:02??game_of_21_point可用\Debug\game_of_21_point.pdb
?????文件?????384828??2009-07-02?19:26??game_of_21_point可用\Debug\game_of_21_point.pch
?????文件?????384828??2009-07-02?20:19??game_of_21_point可用\Debug\main.pch
?????文件??????31419??2009-07-02?22:02??game_of_21_point可用\Debug\main.obj
?????文件???????1263??2008-11-05?01:12??game_of_21_point可用\card.h
?????文件???????4584??2008-04-14?12:26??game_of_21_point可用\game_of_21_point.dsp
?????文件????????557??2008-04-12?21:40??game_of_21_point可用\game_of_21_point.dsw
?????文件??????66560??2009-07-03?22:29??game_of_21_point可用\game_of_21_point.ncb
?????文件???????1314??2009-07-02?22:02??game_of_21_point可用\game_of_21_point.plg
?????文件??????41984??2009-07-02?20:48??game_of_21_point可用\main.ncb
?????文件????????242??2009-07-02?20:48??game_of_21_point可用\main.plg
?????文件???????7029??2008-11-05?00:58??game_of_21_point可用\utility.h
?????文件???????5901??2009-07-02?19:26??game_of_21_point可用\game_of_21_point.h
?????文件???????3377??2009-07-02?20:19??game_of_21_point可用\main.dsp
?????文件??????49664??2009-07-02?20:48??game_of_21_point可用\main.opt
?????文件????????977??2009-07-02?22:05??game_of_21_point可用\main.cpp
?????文件??????48640??2009-07-03?22:29??game_of_21_point可用\game_of_21_point.opt
?????目錄??????????0??2009-06-22?10:08??game_of_21_point可用\Debug
?????目錄??????????0??2009-06-22?10:08??game_of_21_point可用
-----------?---------??----------?-----??----
??????????????3357102????????????????????25
- 上一篇:信號與系統習題(一到八章的習題)
- 下一篇:波奇寵物商品商城管理系統
評論
共有 條評論