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.
Explanation.
Cure.
Reputation Points: 2780
Solved Threads: 312
long time no c
Offline 4,790 posts
since Apr 2004