Cout of a string is giving an error and a hard time some insight help pls?

前端 未结 3 559
南笙
南笙 2021-01-27 14:36

I cant find the error in this piece of code could anyone please insight me? I ran the debugging but the errors are un-understandable..

#include \"stdafx.h\"
#in         


        
3条回答
  •  情话喂你
    2021-01-27 15:14

    Should be

    if (name == "Bart Simpson")
    {
        cout << "You have been very naughty" << endl;
    }
    

    And you need to include

提交回复
热议问题