开发者

new string of string in code

in C++ it's

string x = "hello \
Hello";

it's \

in C# I really don't know :) but \ doesn't works and I can't find information. Th开发者_运维技巧at's annoying.


Prefix your string with the @ symbol so that the newline character is included in the string.

string x = @"hello 
Hello";


string x = @"Hello
world";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜