Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- using namespace std;
- int main()
- {
- char name[50];
- cout << "Tell me your name, Warrior"<<endl;
- cin.getline(name, 50);
- cout<<"You better move fast " <<name<<"! The goblins are after us!"<<endl;
- cout <<"\n------------------ Press any button for brain cancer ------------------"<<endl;
- _getch();
- system("CLR");
- cout<< "What would you like to do?"<<endl;
- cout<< "Enter 1 to follow the chief"<<endl;
- cout<< "Enter 2 to find your own path"<<endl;
- int input; // <----- nálad ez a choicepath
- while (input != 1 && input != 2)
- {
- cin>> input;
- }
- if(input == 1)
- {
- cout<<"Come with me"<<endl;
- }
- if (input == 2) {
- cout<<"You lil shit. You not gonna survive!... Bye"<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement