alrite in C++ theres system("PAUSE"); to make the program not close as soon as its run but what can i use in C to make sure the program doesnt close imediately after its run?
alrite in C++ theres system("PAUSE"); to make the program not close as soon as its run but what can i use in C to make sure the program doesnt close imediately after its run?
yeah same thing will work in c as well
just make sure you have stdlib.h included in the program
alrite, it works fine even without stdlib.h but it keeps on going forever...see this is my first C prog..it says "blahblah blah" but it goes on forver..now if i want it to say it once then stop what would i do..o_O i think i should get a book instead of internet tutorials...
I always just add a getch(); at the end and tell them to hit any button to end the program. Crude, but it works fine for me.
What goes on forever? The display of blah blah blah? The program doesn't terminate?Originally posted by MrSoy
alrite, it works fine even without stdlib.h but it keeps on going forever...see this is my first C prog..it says "blahblah blah" but it goes on forver..now if i want it to say it once then stop what would i do..o_O i think i should get a book instead of internet tutorials...
Post some code as you may have an infinite loop.
I haven't used a compiler in ages, so please be gentle as I try to reacclimate myself. :P