So, I'm not yet worried about giving the option to quit, I just want to at least be able to have the program post the results to the console. I've tried a couple of different things, but it seems that the "string result(...)" subprogram is the issue here. Before, I was getting the "term cannot evaluate to a function..." error. I changed it over to string, because I want the output to be a line of text, but when I add cout << whoWins << endl; to main, whoWins being the function, it will not compile! What am I doing wrong?!?
Problem #1, yeah that was just a typo - thanks!
Problem #2 - I need the output to be something that I can compare with the computer's choice. If I make it an integer, then I can't accept R, P, or S as input correct?
My biggest issue here is that at line 111, I get a compile error (well a ton of them actually) because it doesn't like that one line. Take that out and it's fine, but the program terminates after accepting the user choice. It just states what the computer chose, then terminates.
Ahhhh... looks like i just needed to add #include <string> ....duh! It works fine now, I just need to add a scorekeeper, and an option to quit - shouldn't be to hard. I'll post if I have issues.
Problem #2 - I need the output to be something that I can compare with the computer's choice. If I make it an integer, then I can't accept R, P, or S as input correct?
no. You can't do it. Because '1' are not equal to 1. '1' is equal to 42 or so. So you can't do it.
Ahhhh... looks like i just needed to add #include <string> ....duh! It works fine now, I just need to add a scorekeeper, and an option to quit - shouldn't be to hard. I'll post if I have issues.
My compiler do not said anything about missing #include <string> :D
don't know way :S
And program worked.