When I compile and run with IDE Code Block, I could run it without exiting automatically. When I run it in bin, release, .exe, I could run the .exe but I really can't see the file. It exit without me having to press Enter. When I compile this code in Dev, I could run the .exe without having any problem. If this problem persist, I'll change to Dev-C++. By the way, I'm using MingGW compiler. Is the problem lies with MingGW compiler? If anyone have the same problem as me, can you post here? Can anyone help us to solve this problem? Thanks in advance!