writeLine语句中的转义字符\r的使用问题
using System;using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace p415zlxhyylx
{
class Test{
public int a;
}
class Program
{
static void Main(string[] args)
{
int x = 42, y = x;
Test t1 = new Test();
t1.a = 42;
Test t2 = t1;
Console.WriteLine("x=" + x + " y=" + y + "\rt1.a=" + t1.a + " t2.a=" + t2.a);//为什么用了\r后只显示t1.a和t2.a的值
Console.ReadLine();
}
}
}