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!
|