using System;
class TEXT{ struct phonebook { public string name; public string phone; public string address; } phonebook p; p.name="XL";}
改成这样还是不行using System;
class TEXT{ static void Main(){ struct phonebook { public string name; public string phone; public string address; } phonebook p; p.name="XL";}}
嗯,我试了.能用.谢谢版主了.但是如果我想一次性显示P的所有属性呢?有没有具体的命令?