用VS2022运行运行代码后,没有出现结果弹窗,只有出现最后几行文字,这种情况怎么解决

img

把printf("hello")改成cout<<"hello"

main()函数return 0;之前加上getchar();system("pause");