Quote:Original post by Nemesis2k2
Actually, that requires the windows.h header to be included.
I was going to tell you you're wrong, but it turns out I'm mistaken. VS2003, with an empty Win32 Console Project does not require windows.h specifically. Apparently <iostream> does the trick. I had assumed if it was defined anywhere, it wouldn't be in <iostream>, and a program with that as the only include still functioned. Oops.
I like this much, much more than cin.get(). That requires your keypress be Enter. Maybe its not portable, but its a hack for debugging purposes. The code will probably be taken out at the end whatever solution you go with.
CM