SHARE
TWEET

V1.5

medal893 Jan 4th, 2017 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. using namespace std;
  5.    
  6. char Respon;
  7. int i;
  8. int GenerationLV[10];
  9. int Money;
  10. long long GenerationAup[100];
  11. long long GenerationBup[100];
  12. long long GenerationCup[100];
  13. long long GenerationDup[100];
  14. long longGenerationEup[100];
  15. long long GenerationFup[100];
  16. long long GenerationGup[100];
  17. long long GenerationHup[100];
  18. long long GenerationIup[100];
  19. long long GenerationJup[100];
  20.  
  21. void Picture1(){
  22.     cout<<"A    A"<<endl;
  23.     cout<<"||||||"<<endl;
  24. }
  25. void changepage(){
  26.     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;
  27.     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;
  28.     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;
  29. }
  30. void mainpicture(){
  31.     cout<<"-------------------------------"<<endl;
  32.     cout<<"==============================="<<endl;
  33.     cout<<"-------------------------------"<<endl;
  34.     cout<<"==============================="<<endl;
  35.     cout<<"-------------------------------"<<endl;
  36.     cout<<"==============================="<<endl;
  37.     cout<<"-------------------------------"<<endl;
  38.     cout<<"==============================="<<endl;
  39.     cout<<"-------------------------------"<<endl;
  40.     cout<<"==============================="<<endl;
  41.     cout<<"-------------------------------"<<endl;
  42.     cout<<"==============================="<<endl;
  43.     cout<<"-------------------------------"<<endl;
  44.     cout<<"==============================="<<endl;
  45.     cout<<"-------------------------------"<<endl;
  46.     cout<<"==============================="<<endl;
  47.     cout<<"-------------------------------"<<endl;
  48.     cout<<"==============================="<<endl;
  49.     cout<<"-------------------------------"<<endl;
  50.     cout<<"==============================="<<endl;
  51.     cout<<"-------------------------------"<<endl;
  52.     cout<<"==============================="<<endl;
  53. }
  54. //  sleep(2000);
  55. void ReGenMain(){
  56.     GenerationAup[0]=0;
  57.     GenerationAup[1]=10;
  58.     GenerationAup[2]=20;
  59.     GenerationBup[0]=5000;
  60.     GenerationBup[1]=5020;
  61.     GenerationBup[2]=10040;
  62.     GenerationCup[0]=500000;
  63.     GenerationCup[1]=1000000;
  64.     GenerationDup[0]=200000000;
  65.     GenerationDup[1]=400000000;
  66.     for(i=2;i<=49;i++){
  67.         GenerationAup[i+1]=GenerationAup[i]+GenerationAup[i];
  68. //      cout<<GenerationAup[i]<<endl<<endl<<GenerationBup[i]<<endl;
  69.         GenerationBup[i+1]=GenerationBup[i]+GenerationBup[i];
  70.         GenerationBup[i+1]=GenerationCup[i]+GenerationCup[i];
  71.         GenerationBup[i+1]=GenerationDup[i]+GenerationDup[i];
  72.     }
  73.     GenerationBup[0]=11;
  74. }
  75.  
  76. void UpgradeMessage(char U){
  77.     if(U=='a'){
  78.        
  79.  
  80.         cout<<"The Amount to upgrade it is"<<GenerationAup[GenerationLV[0]+1]<<endl;
  81.         cout<<"Your Money is "<<Money<<endl;
  82.     cout<<"Are you sure to upgrade it?";
  83.             cin>>Respon;
  84.         if(Respon=='y'){
  85.             Money=Money-GenerationAup[GenerationLV[0]+1];
  86.             cout<<"Money is now"<<Money<<endl;
  87.             GenerationLV[0]=GenerationLV[0]+1;
  88.         }
  89.     }
  90.     else if(U=='B'){
  91.         cout<<"The Amount to upgrade it is"<<GenerationBup[GenerationLV[0]+1]<<endl;
  92.         cout<<"Your Money is "<<Money<<endl;
  93.     cout<<"Are you sure to upgrade it?";
  94.             cin>>Respon;
  95.         if(Respon=='y'){
  96.             Money=Money-GenerationBup[GenerationLV[0]+1];
  97.             cout<<"Money is now"<<Money<<endl;
  98.             GenerationLV[0]=GenerationLV[0]+1;
  99.         }      
  100.     }
  101.     else if(U=='C'){
  102.         cout<<"The Amount to upgrade it is"<<GenerationCup[GenerationLV[0]+1]<<endl;
  103.         cout<<"Your Money is "<<Money<<endl;
  104.     cout<<"Are you sure to upgrade it?";
  105.             cin>>Respon;
  106.         if(Respon=='y'){
  107.             Money=Money-GenerationCup[GenerationLV[0]+1];
  108.             cout<<"Money is now"<<Money<<endl;
  109.             GenerationLV[0]=GenerationLV[0]+1;
  110.         }      
  111.     }
  112.     else if(U=='D'){
  113.         cout<<"The Amount to upgrade it is"<<GenerationDup[GenerationLV[0]+1]<<endl;
  114.         cout<<"Your Money is "<<Money<<endl;
  115.     cout<<"Are you sure to upgrade it?";
  116.             cin>>Respon;
  117.         if(Respon=='y'){
  118.             Money=Money-GenerationDup[GenerationLV[0]+1];
  119.             cout<<"Money is now"<<Money<<endl;
  120.             GenerationLV[0]=GenerationLV[0]+1;
  121.         }      
  122.     }
  123. }
  124.  
  125. void Generation(){
  126.  
  127.     cout<<"Reset the Generation's value?";
  128.     cin>>Respon;   
  129.     if(Respon='y'){
  130.         for(i=0;i<=9;i++){
  131.             GenerationLV[i]=0;
  132.         }
  133.         cout<<endl;
  134.     }
  135.  
  136.  
  137.     cout<<"GenerationA Lv"<<GenerationLV[0]<<"     "<<endl;
  138.     cout<<"GenerationB Lv"<<GenerationLV[1]<<"     "<<endl;
  139.     cout<<"GenerationC Lv"<<GenerationLV[2]<<"     "<<endl;
  140.     cout<<"GenerationD Lv"<<GenerationLV[3]<<"     "<<endl;
  141.     cout<<"GenerationE Lv"<<GenerationLV[4]<<"     "<<endl;
  142.     cout<<"GenerationF Lv"<<GenerationLV[5]<<"     "<<endl;
  143.     cout<<"GenerationG Lv"<<GenerationLV[6]<<"     "<<endl;
  144.     cout<<"GenerationH Lv"<<GenerationLV[7]<<"     "<<endl;
  145.     cout<<"GenerationI Lv"<<GenerationLV[8]<<"     "<<endl;
  146.     cout<<"GenerationJ Lv"<<GenerationLV[9]<<"     "<<endl;
  147.     system("PAUSE");
  148.     while(i!=-100000){
  149.     cout<<"Which one would you like to upgrade?(Key in N to get out of this page)";
  150.     cin>>Respon;   
  151.         if(Respon='A'){
  152.             UpgradeMessage('A');
  153.         }
  154.        
  155.         else if(Respon='B'){
  156.             UpgradeMessage('B');
  157.         }
  158.         else if(Respon='C'){
  159.             UpgradeMessage('C');
  160.         }
  161.         else if(Respon='D'){
  162.             UpgradeMessage('D');
  163.         }
  164.        
  165.     }
  166. }
  167. int main(){
  168.  
  169.     changepage();
  170.     mainpicture();
  171.     changepage();
  172.     ReGenMain();
  173.     Generation();
  174.    
  175. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top