C#数据结构小讲

枚举 : enum Day {

      Mon, Tur,Wen,Sur,Fri,Sat,Sun

            }

               Day d1 = Day.Mon;

结构体 : struct Pe{

      public int ID;

                      public bool sex;

                     public  string name;

       }

                 Pe p = new Pe();

                  p.ID = 1234567890; 

posted @ 2018-03-29 18:04  指间流年  阅读(164)  评论(0)    收藏  举报