I have version 4.52 at school and 5.02 at home. At school my compiled programs stay open after they are done running but at home they close instantly. Is there any way to get programs to stay open when they are done running on 5.02?
This is a setting in Windows. Somewhere you can set Console (DOS) windows to stay open until they are closed by you. Most people just skip that and have the program ask for some sort of input from the user before closing, e.g.:
Code:
int main ()
{
cout << "Hi, World" << endl;
string GetInput;
cin >> GetInput;
return;
}
James P. Cottingham
There's no place like 127.0.0.1.
There's no place like 127.0.0.1.
Actually, string does come with this version, but I cannot figure out how to assign a string variable, I just get an error. I open #include <string.h> then assign the variable: string x; but string does not turn bold and it does not recognize the word.
In some of the older versions I think you had to include cstring.h or use the keyword String (with capital S). It's been a while since I've used those versions.
There used to be a site that had the STL library for the older Borland versions but the last time I visited it they had moved the library to another site. I've since lost the URLs for both.
James P. Cottingham
There's no place like 127.0.0.1.
There's no place like 127.0.0.1.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.