everyone know system("pause") and getchar() can pause the DOS screen after compile. It was no problem when I using Borland C++ 6 serveral yrs ago on WinMe. But today, there's no more PAUSE again running on WinXP. That's strange. Anyone have a clue ?
Sure there is a pause command in Win XP. But it isn't good programming-practice to rely on the system() function, since it is by definition platform-specific. Use getchar() instead.
: Sure there is a pause command in Win XP. But it isn't good : programming-practice to rely on the system() function, since it is : by definition platform-specific. Use getchar() instead.
Hey guys ! Find out what cause the problem. I should choose 'Console Wizard' instead of 'C File' when open new file. My own mistake, please ignore this thread. ^o^
Comments
: programming-practice to rely on the system() function, since it is
: by definition platform-specific. Use getchar() instead.
Hey guys ! Find out what cause the problem. I should choose 'Console Wizard' instead of 'C File' when open new file. My own mistake, please ignore this thread. ^o^