Quote:Original post by EasilyConfused
Well, I'm glad about Code::Blocks. The thing is that if you put an artificial pause at the end of your program, then you happen to want to run the exe from a command line, the pause at the end suddenly becomes really annoying.
And putting your program inside a batch file becomes very difficult as well.
I'm well aware that very few beginners are ever going to do either of these things, which is why I consider system("pause") harmless at that level, but I guess it's good to be aware of the issues.
(Like, what happens if I put a pause.exe that reformats your harddrive in the same directory as your program for example. Woo ha ha ha.)
Ha! most beginners probably don't know what a batch file is!
@Moonshoe: Wow, I had no idea system("pause") was so huge and ugly. So much effort for so small a line...