升级小游戏源代码

这是一个用C++编的打怪升级游戏,当初玩《仙剑》,现在也可以玩自己的游戏了。当然了,这个肯定没有《仙剑》好玩了,不过什么事都是从简单到复杂,大家可以好好研究研究,争取做出自己的经典游戏出来~~~... 需要的去文件库下载源代码! 源代码: #include <cstdlib> #include <iostream> #include <string> using namespace std; int str[4],def[4],hp[8]; int boss=1,l=1,mj=0,ycboss=0; int money=0; int yaopin[4]; in...
2008-01-27 09:52 | 阅读 7485 次 | 评论 1 条

21点扑克牌游戏

/*该程序是模拟21点扑克牌游戏,玩家最多可以要5张牌,但是如果牌的点数之和超过21,则自动出局,在不超过21点的情况下,玩与庄家比牌的点数大小,大者为赢家。 */ #include <iostream>#include <cstdlib>#include <ctime>using namespace std; class CCard{ private: int naPip[5]; //定义一个数组,一共是5张牌。 int nNumber; //发了多少张牌。 int nDollar; //有多少钱 int nGamble; //赌注 int nWin; //赢局数 i...
2008-01-18 22:44 | 阅读 2322 次 | 评论 0 条
浏览49366次
最新评论