frrossk did a great job helping you! Please put the following lines near the end of your code, just above return 0; to make the console display wait:
[php]
cin.get(); // trap return
cin.get(); // wait till key pressed
[/php]
there are a couple of other things to be worked on, but you will get it right.
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
Offline 5,792 posts
since Oct 2004