我想更舒适地使用cout
我想使用cout
打印出此句子:“您可以构建Piramid哪个地板只有奇怪的。就像下面的方式一样。但是,当我使用这种方式时,会发生错误。那么,有什么方法可以这样使用吗?
cout << "You can build piramid which floor is only odd.
not even" << '\n';
I want to use cout
to print out this sentence: "You can build piramid which floor is only odd. not even", but I want to do it more comfortably. Just like the way below. But, when I use this way, an error occurs. So, is there any way to use it like this?
cout << "You can build piramid which floor is only odd.
not even" << '\n';
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
相邻字符串文字即使它们在不同的行上,也会自动兼容。因此,您可以这样写它:
Adjacent string literals will automatically be concatenated, even if they are on different lines. So you can write it this way instead:
要在C ++中使用多行字符串,您 can 使用Backsslash。
To use multi-line strings in C++, you can use backslash.