Hi guys i hav a problem in running a code in turbo C, the files compiled succesful but when i run it the program does not appear on DOS, is there anyone who could help me.thanks
Printable View
Hi guys i hav a problem in running a code in turbo C, the files compiled succesful but when i run it the program does not appear on DOS, is there anyone who could help me.thanks
change your stone-age compiler to some more recent one... for example
A few more recent IDEs:
http://cpwiki.sourceforge.net/Integr...nt_Environment
What do you mean "the program does not appear on DOS"?
The console window may open and close, too fast to see?
add this variable to the list of your variables:
int gar;
which is short for garbage.
Then add this line of code, just before the end of your program, in main():
gar = getchar();
This won't bother anything else in your code, and you'll be able to see your DOS console window, until you hit enter, now.
Or you could run the executable from the command prompt. Start->run->cmd if you are running Windows XPQuote:
The console window may open and close, too fast to see?
add this variable to the list of your variables:
int gar;
which is short for garbage.
Then add this line of code, just before the end of your program, in main():
gar = getchar();