Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3.  
  4. using namespace std;
  5.  
  6.  
  7. const string answers[] = { "It is certain.", "As I see it, yes.",
  8. "It is decidedly so", "Most likely.", "Without a doubt.", "Outlook good.",
  9. "Yes - definitely.", "Yes.", "You may rely on it.", "Signs point to yes.",
  10. "Reply hazy, try again.", "Ask again later.", "Better not tell you now.",
  11. "Cannot predict now.", "Concentrate and ask again.",
  12. "Don't count on it.", "My reply is no.", "My sources say no.",
  13. "Outlook not so good.",
  14. "Very doubtful."
  15. };
  16.  
  17. main ()
  18. {
  19.  
  20.  
  21. for (;;)
  22. {
  23.  
  24. string in;
  25. int random = (rand () % 200) / 10 - 1;
  26.  
  27. cout << "ask me a question: ";
  28. cin >> in;
  29. cout << answers[random] << "\n";
  30. }
  31.  
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement