I can take a look at it, see what happens, I'm short on time. But when you post code, use the CODE tag. you enclose the word 'code' inside []. then after the code is done, you enclose "/code" in [].
Code:
#include <iostream.h>

main()
{
     cout << "Hello World!";
     system("pause");
     exit(0);
}
A_T