Why does Console.WriteLine() function miss some characters within a string?

后端 未结 7 2372
野的像风
野的像风 2021-02-12 10:42

I have a string, declared as:

 string text = \"THIS IS LINE ONE \"+(Char)(13)+\" this is line 2\";

And yet, When I write Console.WriteLin

7条回答
  •  南笙
    南笙 (楼主)
    2021-02-12 11:35

    Use string.Concat() to concatenate

    string text = String.Concat(...)
    

    and try to print this

提交回复
热议问题