Borland c++ compiler problem

Status
Not open for further replies.

ComputerUser

Journeyman
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?
 

mohitdaksh

Right off the assembly line
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:
Status
Not open for further replies.
Top Bottom