Hey guys...
I have Borland C++ compiler with version 5.02.
The problem is that once I run the code, it makes and just flashes and disappears.
I mean, in a simple 'hello world program', the program just cout 'hello world' and closes itself.
I tried getch(); and it did work, but however I want it to stay open without any commands.
In my school, we have borland 4.98 in which we could type in the code and run it, and it just stays open until we close the window.
The hello world code is :
#include<iostream.h>
int main()
{
cout<<"Hello world!";
}
I have run it on my school computer (with borland v.4.98) and it stayed open without closing, but on my computer at home (with borland v.5.02), the program just flashes "Hello world" and closes itself...
Can you guys recommend what could be probably wrong with my computer, are there some special setting to borland which could enable them to stay on after the code is completed?
I want something permanent, unlike getch(); which i have to add after every code end...
Thank You!!