把printf("hello")改成cout<<"hello"
在main()函数return 0;之前加上getchar();或system("pause");
main()
return 0;
getchar();
system("pause");