Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int main()
- {
- int start;
- return 0;
- }
- int start ()
- {
- std::string answerOne;
- std::cout << "Hello. Do you have a moment? Say 'yes' or 'no': ";
- std::cin >> answerOne;
- if(!answerOne.compare("yes")) std::cout << "What is your name?\n";
- else std::cout << "Sorry, I didn't quite catch that\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement