文件名称: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
}
}-Beginner C++ When a small way, the ancient castle to rescue the U.S. game, enter the command guidelines adventure hero, princess encountered victory monster encountered in the end, mainly in order to familiar with c++, Familiar with oop thinking The program is debugged on the plat of VC 6.0 for its main structure: int main () (Welcome () while (1) (Adventure ()// game main cout
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
}
}-Beginner C++ When a small way, the ancient castle to rescue the U.S. game, enter the command guidelines adventure hero, princess encountered victory monster encountered in the end, mainly in order to familiar with c++, Familiar with oop thinking The program is debugged on the plat of VC 6.0 for its main structure: int main () (Welcome () while (1) (Adventure ()// game main cout
(系统自动生成,下载前可以参看下载内容)
下载文件列表
adventure
.........\Beauty.cpp
.........\header.h
readme.txt
.........\Beauty.cpp
.........\header.h
readme.txt