我有一个字符串,声明为:
string text = "THIS IS LINE ONE "+(Char)(13)+" this is line 2";
然而,当我写作Console.WriteLine(text);
时,
输出是:
this is line 2E
为什么会发生这种行为?还是因为我很愚蠢并且错过了一些明显的东西?
为什么不打印:
THIS IS LINE ONE [CR] //where the CR is a non printed character
this is line 2
编辑
请注意:这不是“如何添加回车”问题。