View Single Post
  #2 (permalink)  
Old January 18th, 2007, 10:50 AM
Geo121 Geo121 is offline
Friend of Wrox
 
Join Date: Jan 2006
Posts: 103
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Geo121
Default

unfotunately cin.get doesn't do it.

There are two ways I know of to use the enter key to exit

the easy way(janky) and the hard way(fancy)

when you use cin.get you are just saying cin pretty much

which will continue to wait until the user enters a value

if you want to do the lazy way just create a loop where you use cin and they have to enter a value of any kind to continue

or the fancy way is to implement the Win322 API if you have never used the API before I suggest you look into it I can give a good tutorial and some of my own personal examples

~ Geo

~ Don't take life too seriously, you'll never get out alive!
Reply With Quote