using System;
namespace _025_结构
{
public struct Preson
{
public string _name;//_字段
public int _age;
public Gender _gender;
}
public enum Gender
{
男,
女
}
class Program
{
static void Main(string[] args)
{
//xx大学管理系统
//姓名,年龄,性别
//string zsName = "张三";
//int zsAge = 21;
//char zsGender = '男';
Preson zsPreson;
zsPreson._name = "张三";
zsPreson._age = 19;
zsPreson._gender = Gender.男;
Preson lsPreson;
lsPreson._name = "李四";
lsPreson._age = 19;
lsPreson._gender = Gender.女;
Console.WriteLine(zsPreson._age);
Console.WriteLine(lsPreson._gender);
Console.ReadKey();
}
}
}