Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 08-08-2009, 03:43 PM   #1 (permalink)
Broken In
 
ComputerUser's Avatar
 
Join Date: Apr 2007
Location: Bhubaneswar
Posts: 138
Default Borland c++ compiler problem


While using Relo with borland c++ compiler, the run window does not show up. Only a command prompt window comes up and goes away in a sec before I can see the output! And the same thing happens with turbo c++ ! What's happening?
ComputerUser is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 09-08-2009, 03:04 PM   #2 (permalink)
Right Off the Assembly Line
 
Join Date: Aug 2009
Posts: 1
Default Re: Borland c++ compiler problem

For all the boreland compilers(including turbo c) you will have to use getch() before the return statement for the program to display you the output properly.
You will have to use the header "conio".

Basically what happens is that whenever you are running your program with boreland tools, it will return to the editor as soon as the program terminates. It will not wait for you to see the output.
Getch() is used to get single character output from the user. So when you insert getch it will wait for you to press a key and then the program will terminate.

Last edited by mohitdaksh; 09-08-2009 at 03:12 PM. Reason: Automerged Doublepost
mohitdaksh is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Charan
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 03:10 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2