Advertisement

N

Started by November 26, 2002 04:04 PM
2 comments, last by craphead 21 years, 11 months ago
how do i make it so that if someone hits N they exit the program?
50/50 Robotics and Software
wait n/m
50/50 Robotics and Software
Advertisement
Are you talking about console or Win32 applications?
I assume console, and I must admit I don''t know.
In Windows environment, there''s a thing called WM_KEYDOWN and you''d have to check the key scan code for ''N''...
char letter = getchar();
if (letter == "n"
Exit();

This topic is closed to new replies.

Advertisement