C++ Builder

Moderators: Lundin
Number of threads: 518
Number of posts: 1158

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Borland C++ 6 problem Posted by j9678 on 21 Dec 2007 at 8:04 AM
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 ?
Report
Re: Borland C++ 6 problem Posted by Lundin on 21 Dec 2007 at 8:20 AM
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.
Report
Re: Borland C++ 6 problem Posted by j9678 on 21 Dec 2007 at 8:30 AM
: 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^



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.