12月29日学习笔记,常量,枚举的使用
摘要:
常量:能够设定程序中那些不会被修改的值。如果强行修改,就会报错。如:class g { public const int gs = 100;}使用枚举来定义各种属性,先定义一个枚举,然后在枚举里设定各类值如:// static void Main(string[] arge) // { //string[] color = new string[] {"red","black","white" }... 阅读全文
posted @ 2009-12-30 05:14 wwweee 阅读(131) 评论(0) 推荐(0)
浙公网安备 33010602011771号