我想用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)
但是我收到了一个错误.
任何帮助?
像这样的东西:
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++中,编译器将连接两个彼此相邻的字符串.
| 归档时间: |
|
| 查看次数: |
3597 次 |
| 最近记录: |