文件名称:adventure
介绍说明--下载内容均来自于网络,请自行研究使用
初学C++时的一个小程,古堡救美游戏,输入命令指引hero探险,遇到princess胜利,遇到monster结束,主要为了熟悉c++,熟悉oop思想
The program is debugged on the plat of VC 6.0
其主体结构为:
int main()
{
Welcome()
while(1)
{
Adventure() //游戏主体
cout<<endl<<\"Do you wanna to try it again (Yes / No) :\"
cin>>Choice
if(choice is not yes) //判断用户是否要继续游戏
break
}
return 0
int adventure()
{
While (1){
Command() //分析输入命令,进入下一个房间
If(meet monster)
Break //gameover
If (meet princess)
Cout<<”you have meet the princess ,take her to a safe place”<<endl
If (meetprincess && currentinlobby)
Win() //win the game
}
}
The program is debugged on the plat of VC 6.0
其主体结构为:
int main()
{
Welcome()
while(1)
{
Adventure() //游戏主体
cout<<endl<<\"Do you wanna to try it again (Yes / No) :\"
cin>>Choice
if(choice is not yes) //判断用户是否要继续游戏
break
}
return 0
int adventure()
{
While (1){
Command() //分析输入命令,进入下一个房间
If(meet monster)
Break //gameover
If (meet princess)
Cout<<”you have meet the princess ,take her to a safe place”<<endl
If (meetprincess && currentinlobby)
Win() //win the game
}
}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 47651502adventure.zip 列表 adventure/ adventure/Beauty.cpp adventure/header.h readme.txt