Sep 10, 2002 #1 zanza Programmer Joined Feb 18, 2002 Messages 89 Location US what would be the fastest way to pause the system (something like "getch()"?) until the user presses a key? žÅNžÅ
what would be the fastest way to pause the system (something like "getch()"?) until the user presses a key? žÅNžÅ
Sep 10, 2002 #2 Leibnitz Programmer Joined Apr 6, 2001 Messages 393 Location CA you can also try: Code: #include <stdlib.h> .... .. system("pause"); Upvote 0 Downvote
Sep 10, 2002 Thread starter #3 zanza Programmer Joined Feb 18, 2002 Messages 89 Location US thanx žÅNžÅ Upvote 0 Downvote
Sep 14, 2002 #4 hughLg Programmer Joined Feb 18, 2002 Messages 136 Location MY here's a C function to do that: Code: int pause() { char c = getch(); if ((c == 0) || (c == 224)) return getch(); return c; } but need <conio.h>. Upvote 0 Downvote
here's a C function to do that: Code: int pause() { char c = getch(); if ((c == 0) || (c == 224)) return getch(); return c; } but need <conio.h>.