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
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
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
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 XPThe 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();
Code:>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.