| You don't need to include <string> to use string, it's included in namespace std;|
Incorrect. A lot of implementations have other headers include <string> for simplicity, but this is counter-standard.
EDIT2: And now, some advice.
Is there any reason why you're using Borland? It's really old and it doesn't support the latest version/standard of C++ (C++11). More modern options for compilers would include Visual Studio's compiler or MinGW's compiler.
Also, although this doesn't fix your problem, you shouldn't be using
. Again, a lot of compilers support it, but that doesn't make it standard-compliant. Would you mind using
in the future?
You might want to put what you have so far into a do-while loop that checks if the players want to play again. Just a hint.
Finally, although I admit I only skimmed through the code, is the -- on line 40 deliberate?