c++在程序结尾写上return 0后无法显示,但是写system(“pause”);却可以。
结尾只写return 0;时的报错(看不懂)
'复习.cpp.exe': Loaded 'C:\Users\Lenovo\Desktop\复习.cpp\Debug\复习.cpp.exe', Symbols loaded.
'复习.cpp.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'复习.cpp.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'复习.cpp.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'复习.cpp.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'复习.cpp.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded.
The thread 'Win32 Thread' (0x13898) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x13ea4) has exited with code 0 (0x0).
The program '[67924] 复习.cpp.exe: Native' has exited with code 0 (0x0).
看一下你的main()函数返回类型: 是不是设置成 void main()
改为:
int main()
{
}