visual studio 2012 c++ hello world - iostream not working

前端 未结 6 1012
轮回少年
轮回少年 2021-02-08 21:48

I have an issue with Visual Studio\'s 2012. I am also using \"Sams Teach Yourself C++ in One Hour a day, 7th edition\".

After using google to find the \"best\" compilers

6条回答
  •  不要未来只要你来
    2021-02-08 22:55

    Besides aphostrophes you may need to disable precompiler headers in project properties.

    They are turned on by default in VS2012. If you are not familiar with precompiled headers turn them off.

    1. Right click on project (not solution)
    2. Click properties.
    3. Expand "Configuration properties"
    4. Expand "C/C++"
    5. Choose "Precompiled headers"
    6. Set "Precompiled header" to "Not Using Precompiled Headers"

    More information about precompiled headers and stdafx.h file at Wikipedia

提交回复
热议问题