开发者

new string of string in code

开发者 https://www.devze.com 2022-12-22 09:29 出处:网络
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

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

精彩评论

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