1、创建或打开一个控制台应用
2、点击“Property Manager”--->右击“Debug|Win32” ---->点击“Property”----->点击“VC++ Directories” --->Executable Directories 选择“Edit” ----> Uncheck the "Inherit from parent or project defaults" option--->Recheck it and click "Ok".
- Repeat this for the includes, library directories, etc. -Click on "Apply" and "Ok" - Rebuild the project and check if this worked.
参考博文:http://stackoverflow.com/questions/4594292/vs-2010-error-cannot-open-file-iostream