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

前端 未结 6 948
轮回少年
轮回少年 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条回答
  •  猫巷女王i
    2021-02-08 22:30

    The apostrophes you used are wrong:

    “Hello World!” 
    

    should be

    "Hello World!"
    

    Notice even how SO recognizes the difference. You should at least type the code you see in the book instead of copying and pasting it. ;-)

提交回复
热议问题