Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- void Picture1(){
- cout<<"A A"<<endl;
- cout<<"||||||"<<endl;
- }
- void changepage(){
- cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
- cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
- cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
- }
- void mainpicture(){
- cout<<"-------------------------------"<<endl;
- cout<<"==============================="<<endl;
- cout<<"-------------------------------"<<endl;
- cout<<"==============================="<<endl;
- cout<<"-------------------------------"<<endl;
- cout<<"==============================="<<endl;
- cout<<"-------------------------------"<<endl;
- cout<<"==============================="<<endl;
- cout<<"-------------------------------"<<endl;
- cout<<"==============================="<<endl;
- cout<<"-------------------------------"<<endl;
- cout<<"==============================="<<endl;
- cout<<"-------------------------------"<<endl;
- cout<<"==============================="<<endl;
- cout<<"-------------------------------"<<endl;
- cout<<"==============================="<<endl;
- cout<<"-------------------------------"<<endl;
- cout<<"==============================="<<endl;
- cout<<"-------------------------------"<<endl;
- cout<<"==============================="<<endl;
- cout<<"-------------------------------"<<endl;
- cout<<"==============================="<<endl;
- }
- // sleep(2000);
- void Generation(){
- char Respon;
- int i;
- int GenerationLV[10];
- int Money;
- Money=10000000000;
- // Money=100;
- cout<<"Reset the Generation's value?";
- cin>>Respon;
- if(Respon='y'){
- for(i=0;i<=9;i++){
- GenerationLV[i]=0;
- }
- cout<<endl;
- }
- int GenerationAup[100];
- GenerationAup[0]=0;
- GenerationAup[1]=10;
- GenerationAup[2]=20;
- GenerationAup[3]=40;
- for(i=3;i<=99;i++){
- GenerationAup[i+1]=GenerationAup[i]+GenerationAup[i];
- }
- cout<<"GenerationA Lv"<<GenerationLV[0]<<" "<<endl;
- cout<<"GenerationB Lv"<<GenerationLV[1]<<" "<<endl;
- cout<<"GenerationC Lv"<<GenerationLV[2]<<" "<<endl;
- cout<<"GenerationD Lv"<<GenerationLV[3]<<" "<<endl;
- cout<<"GenerationE Lv"<<GenerationLV[4]<<" "<<endl;
- cout<<"GenerationF Lv"<<GenerationLV[5]<<" "<<endl;
- cout<<"GenerationG Lv"<<GenerationLV[6]<<" "<<endl;
- cout<<"GenerationH Lv"<<GenerationLV[7]<<" "<<endl;
- cout<<"GenerationI Lv"<<GenerationLV[8]<<" "<<endl;
- cout<<"GenerationJ Lv"<<GenerationLV[9]<<" "<<endl;
- system("PAUSE");
- while(i!=-100000){
- cout<<"Which one would you like to upgrade?(Key in N to get out of this page)";
- cin>>Respon;
- if(Respon='A'){
- cout<<"The Amount to upgrade it is"<<GenerationAup[GenerationLV[0]+1]<<endl;
- cout<<"Your Money is "<<Money<<endl;
- cout<<"Are you sure to upgrade it?";
- cin>>Respon;
- if(Respon=='y'){
- Money=Money-GenerationAup[GenerationLV[0]+1];
- cout<<"Money is now"<<Money<<endl;
- GenerationLV[0]=GenerationLV[0]+1;
- }
- }
- }
- }
- int main(){
- changepage();
- mainpicture();
- changepage();
- Generation();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement