摘要: 先建一个类,类中有两个变量作为坐标值 public class remtbpoint //remtbpoint 类(用来记忆某对象坐标) { private int rpointline; private int rpointcol; { get { return rpointline; } set { rpointline = value; } } public int RPointcol { get { return rpointcol; } set { rpointcol = value; } } }在主程序中定义arrayListArrayList rembtpointLinst = 阅读全文
posted @ 2011-04-30 15:52 小颗豆 阅读(5632) 评论(0) 推荐(0) 编辑
摘要: 在C#中先做一个类,然后在类中设置两个静态变量即可作为"全局变量"来使用1 public class TotalLineCol // 在类中设置两个静态变量即可作为全局变量来使用2 {3 public static int TotalLine;4 public static int TotalCol;5 }引用时直接象这样用TotalLineCol .TotalLineTotalLineCol.TotalCol 阅读全文
posted @ 2011-04-30 15:27 小颗豆 阅读(596) 评论(0) 推荐(0) 编辑