aaah, ok, thanks for that cromewell, thanksyou can use printf("Press Any Key to Continue...");getch(); to act like a system pause. basically you want to avoid going to the shell whenever possible because you can't always predict how it will behave.
Hi, i use Dev C++, by a company called BloodShed, google around a bit and youll find it, its fantastic and really REALLy simple. built in comilereditor and debugger. FANTASTIC.dragon2309 did you get that compiler? because I really wanna do some programming in C and I really got to do it because I can't find an editor and compiler. I was gonna install Linux but I wanna wait until I've made my new computer and it might take a while.
dragon2309 said:the return 0 part, is that to hold the cmd applet open when its finished, because it closes automatically. I know this is because its how indows habdles it, and i know theres a simple way to make it stay open indefinately, do you know how to do that?
cheers cromewell, your code works and everything, is there any reason why you spaced it all out or anything?