class R
{ public string human;
public int age;
}
class program
{ static void Main(string[] args)
{
R r1 = new R();
R r2 = new R();
r1.human = "男";
r1.age = 18;
r2.human = "女";
r2.age = 20;
Console.WriteLine("人的性别是{0},年龄是{1}", r1.human, r1.age );
Console.WriteLine("人的性别是{0},年龄是{1}", r2.human, r2.age );
{ public string human;
public int age;
}
class program
{ static void Main(string[] args)
{
R r1 = new R();
R r2 = new R();
r1.human = "男";
r1.age = 18;
r2.human = "女";
r2.age = 20;
Console.WriteLine("人的性别是{0},年龄是{1}", r1.human, r1.age );
Console.WriteLine("人的性别是{0},年龄是{1}", r2.human, r2.age );