Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- using namespace std;
- int main()
- {
- string mystr;
- cout << "What's your name? ";
- getline (sin, mystr);
- cout << "Hello " << mystr << ".\n";
- cout << "Well I am the Overseer, and you- friend have been selected to venture into the wastes! "<< mystr <<" \n ";
- system("PAUSE");
- cout << "It will be a dangerous journey. But if you fair well our citizens could finally leave!\n";
- cout << "Will you accept this task?\n"
- " [1] Yes I accept!\n"
- " [2] No I can not!\n";
- cin >> c;
- switch (toupper( c ))
- {
- case '1': return cout "Okay fair enough return to your chambers!";
- case '2': return cout "Very brave! This is a huge step for us!";
- }
- return ;
- }
- system("PAUSE");
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement