Posted on 2007-08-20 19:49
停留的风 阅读(304)
评论(0) 编辑 收藏 所属分类:
C#学习历程
namespace structHs
{
struct customerName
{
public string firstName, secondName;
public string Name()
{
return firstName + " " + secondName;
}
}
class Program
{
static void Main(string[] args)
{
customerName myName;
myName.firstName = "Jim";
myName.secondName = "Smith";
Console.WriteLine(myName.Name());
Console.ReadKey();
}
}
}