#include <iostream>
#include <string>
using namespace std;
/////////////////////////////////////////////初始金币/////////////////////////////////////////////////////
static int coin = 10;
///////////////////////////////////////////函数声明区////////////////////////////////////////////////////
void gameover1();
void gameover2();
void gameover3();
void menu();
void welcome();
void class1();
void class2();
void class3();
void class4();
void class5();
void class6();
void help();
void cheat();
///////////////////////////////////////第三关游戏结束函数////////////////////////////////////////////////
void gameover3(){
int ask;
cout << "1.继续游戏\n2.不玩了" << endl;
cin >> ask;
switch (ask){
case 1:coin--;
cout << "复活币-1, 您现在还剩下" << coin << "枚复活币" << endl;
system("pause");
class3(); break;
case 2:cout << "回到主菜单!" << endl;
system("pause");
welcome();
default:cout << "输入错误!" << endl; gameover3(); break;
}
}
//////////////////////////////////////////第二关游戏函数结束///////////////////////////////////////////////
void gameover2(){
int ask;
cout << "1.继续游戏\n2.不玩了" << endl;
cin >> ask;
switch (ask){
case 1:coin--;
cout << "复活币-1, 您现在还剩下" << coin << "枚复活币" << endl;
system("pause");
class2(); break;
case 2:cout << "回到主菜单!" << endl;
system("pause");
welcome();
default:cout << "输入错误!" << endl; gameover2(); break;
}
}
/////////////////////////////////////////第一关游戏结束函数///////////////////////////////////////////////
void gameover1(){
int ask;
cout << "1.继续游戏\n2.不玩了" << endl;
cin >> ask;
switch (ask){
case 1:coin--;
cout << "复活币-1, 您现在还剩下" << coin << "枚复活币" << endl;
system("pause");
class1(); break;
case 2:cout << "回到主菜单!" << endl;
system("pause");
welcome();
default:cout << "输入错误!" << endl; gameover1(); break;
}
}
///////////////////////////////////////////帮助函数/////////////////////////////////////////////////////////
void help(){
system("cls");
cout << "每过一关+1复活币,没失败一次-1复活币;\n\n欢迎来到Go_getter的游戏,更多技术支持,请加好友:574273250." << endl;
cout << "Copyright@Go_getter. 2014-1-20.\n将回到主菜单!" << endl;
system("pause");
welcome();
}
/////////////////////////////////////////作弊函数//////////////////////////////////////////////////////////////
void cheat(){
int choose, times = 0;
string cheat;
string answer1 = "abcde", answer2 = "ABcde", answer3 = "AbCdE";
cout << "-----------------------------------" << endl;
cout