码迷,mamicode.com
首页 > 其他好文 > 详细

结构体_枚举类型

时间:2015-04-08 22:47:57      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:

namespace 结构体_枚举类型
{
    class Program
    {
        struct jiegouti
        {
            public int fenshu;
            public string name;
            public string kecheng;
        }
        static void Main(string[] args)
        {
            jiegouti a = new jiegouti();
            jiegouti b = new jiegouti();
            a.fenshu = 95;
            a.name = "约里克";
            a.kecheng = "英雄联盟";
            Console.WriteLine("姓名:" + a.name + "\n课程:" + a.kecheng + "\n分数:" + a.fenshu);
            b.fenshu = 100;
            b.name = "卡尔萨斯";
            b.kecheng = "LOL";
            Console.WriteLine("姓名:" + b.name + "\n课程:" + b.kecheng + "\n分数:" + b.fenshu);
            Console.ReadLine();
            ArrayList al = new ArrayList();
         

        }
    }
}

结构体_枚举类型

标签:

原文地址:http://www.cnblogs.com/lk-kk/p/4404189.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!