Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

need help with text based game making choices

$
0
0
i know this prob looks dumb but this is my first time trying this and im stuck i cant find anything online that could help me well my question is how do i keep adding choices in the game i can do one but then after that i cant figure out how to add another choice from one of the previous choices

#include <iostream>

using namespace std;

main(int argc, char *argv[])
{
         int choice;
     cout  << "WELCOME CRIMINALS\n\n";
     cout  << "Are u ready to comit some crimes and make some MULAH\n";
     cout  << "1. HELL YES\n";
     cout  << "2. Naw im cool\n";
     cout  << "Your Choice";
     cin   >> choice;
     
     
     if(choice == 1 ) {
     cout << "\n\n\n Were do u want to go to to rob \n\n"; 
     cout << "1. Wallmart \n";
     cout << "2. Big 5 \n";
     cout << "3. Target \n";
     }
               
     
     else {
     cout  << "\n\n\n FUCKING PUSSY!!";
     }          
     
    
    
    system("PAUSE");
    return EXIT_SUCCESS;
}

thatnk you

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>