Have you tried not putting any code after it? Or you could try using break; if you are in a loop and you want to break the loop, repeating until you are free of the program. If you just want a simple, one liner, use return.
If "Press any key to continue..." automatically appears when your program ends, then you probably don't need to worry about it. This is most likely added by your IDE so you have a chance to read the content of the console before it closes. It will, however, not occur if you run your program from outside the IDE.
EDIT: And I second Danny's article recommendation. It is not advisable to still be using DevC++ in 2011. There are a lot of better choices out there.
Ok Xander and Danny, I use Dev C++ because I'm a beginner in computer programming. Anyway thank you for commenting on my topic though my question was not directly answered. :)
It's all the more important to address the use of an out dated IDE and compiler while you are learning as to avoid learning the outdated styles and such used with that compiler. Please don't take us the wrong way, it's just that we want to ensure that you aren't using something that can and will hinder you in the long run.
Would you be able to explain a little better what you mean or even post a small sample code to demonstrate what you mean, because it looks like two valid solutions have been posted.
Dev-C++ automatically appends system("pause") to the end of your program, just find that line and delete it. Code::Blocks is the one that runs your program in a shell to hold the output window open after your application is done executing.