Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- const string answers[] = { "It is certain.", "As I see it, yes.",
- "It is decidedly so", "Most likely.", "Without a doubt.", "Outlook good.",
- "Yes - definitely.", "Yes.", "You may rely on it.", "Signs point to yes.",
- "Reply hazy, try again.", "Ask again later.", "Better not tell you now.",
- "Cannot predict now.", "Concentrate and ask again.",
- "Don't count on it.", "My reply is no.", "My sources say no.",
- "Outlook not so good.",
- "Very doubtful."
- };
- main ()
- {
- for (;;)
- {
- string in;
- int random = (rand () % 200) / 10 - 1;
- cout << "ask me a question: ";
- cin >> in;
- cout << answers[random] << "\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement