2013年4月30日

第十八节 数组(一)

摘要: 数组:具有相同类型的一组数据叫做数组。int[] scores = {};using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ShuZu{ class Program { static void Main(string[] args) { int[] scores = { 1,3,5,7,9}; scores[0] = 2; int sum = scores[... 阅读全文

posted @ 2013-04-30 23:52 杨柳清枫2012 阅读(127) 评论(0) 推荐(0)

第十七节 枚举 结构体

摘要: 枚举类型用关键字 enum声明。using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Meiju{ enum WeekDay{Sun,Mon,Tue,Wed,Thur,Fri,Sat} class Program { static void Main(string[] args) { WeekDay today = WeekDay.Sun; if ((today == Week... 阅读全文

posted @ 2013-04-30 22:50 杨柳清枫2012 阅读(201) 评论(0) 推荐(0)

导航