gpt4 book ai didi

c++ - C++ 多行执行同一命令

转载 作者:太空宇宙 更新时间:2023-11-04 05:41:30 25 4
gpt4 key购买 nike

<分区>

我想在 C++ 中跨多行编写一个变量。在 WINAPI 中更精确。

类似的东西:(如果\是执行它的命令,)

str=" This is a sample file trying to write multiple lines. \n but it is not same as line break. \
I am defining the same string over several lines. This is different from using backslash n. \
This is not supposed to print multipline in screen or in write file or on windows display. This\
is for ease of programming.";

问题是我得到了“|||”在我的代码中使用\的任何地方。我不希望它出现。我该怎么办?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com