...\cstdlib(24) : error C2039: “exit”: 不是“`global namespace'”的成员;
...\cstdlib(24) : error C2873: “exit”: 符号不能用在 using 声明中;
找到cstdlib头文件,发现 using _CSTD exit; using _CSTD free; 这句中exit 显示波浪线:the global scope has no "exit" .
将该句注释掉,再运行程序,功能实现,但输出显示类似(以下代码来自网络):
- 'win32.exe': Loaded 'D:\程序设计\vs2010\win32\Debug\win32.exe', Symbols loaded.
- 'win32.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
- 'win32.exe': Loaded 'C:\Windows\System32\kernel32.dll'