Well, I put in a number and then it worked not as i planed although.
In the code you posted,Value does not have a value (as the error message tried to tell you).
First i enterd the first, then the second, then the third. Then it just shuts the window concole.It sounds like an issue with the environment you are running it out of. Perhaps if you ran your program from a command line it would work as expected. But you may find a remedy by adding this line right before the 'return 0;' of main.
cin.get();
Explanation . Cure .
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314