when using Code::Block, sometimes the we need console program auto-exit the console window without asking for an"Enter" key.
Set the console as:
Project -> Properties -> Build targets
uncheck the choice "Pause when execution"
Then the program could will never trouble you by asking for the "Enter" key.
for Code::Blocks 10.05,
Just for Fun , just as a backup.
PS, the more IDE I used, the more I like my vim with its powerful plugins.
I love ❤ thanks for info