Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int start;
  6. return 0;
  7. }
  8.  
  9. int start ()
  10. {
  11. std::string answerOne;
  12. std::cout << "Hello. Do you have a moment? Say 'yes' or 'no': ";
  13. std::cin >> answerOne;
  14. if(!answerOne.compare("yes")) std::cout << "What is your name?\n";
  15. else std::cout << "Sorry, I didn't quite catch that\n";
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement