Cout c ++有很多行

Bet*_*ish 1 c++ cout

我想用cout在c ++中打印一条大消息.

例:

cout<<"Camera could not be opened in the requested access mode, because another
              application (possibly on another host) is using the camera."<<endl;
Run Code Online (Sandbox Code Playgroud)

但是我收到了一个错误.

任何帮助?

Mat*_*son 7

像这样的东西:

 cout<<"Camera could not be opened in the requested access mode, because another "
          "application (possibly on another host) is using the camera."<<endl;
Run Code Online (Sandbox Code Playgroud)

要么

 cout<<"Camera could not be opened in the requested access mode, because another\n"
          "application (possibly on another host) is using the camera."<<endl;
Run Code Online (Sandbox Code Playgroud)

在C和C++中,编译器将连接两个彼此相邻的字符串.