br> Convert.ToDateTime(); Convert.ToDecimal(); Convert.ToDouble(); Convert.ToInt16(); Convert.ToInt32(); Convert.ToInt64(); Convert.ToSByte(); Convert.ToSingle(); Convert.ToUInt16(); Convert.ToUInt32(); Convert.ToUInt64(); 常量 赋值:const int AbsoluteZero=-273; 必须在类定义中声明,而不能超脱类来定义。 结构化的数据类型 1、数组 声明一个数组:string [] strSZ; 为了生成一个已声明的数组,必须进行初始化:strSZ=new string[5]; 声明的同时进行初始化:string [] asp=new string[44]; 数组的下标从0开始。 变量的赋值:asp[0]=“sdf“; <页码:[1] [2] [3] [4] [5] [6] 第2页、共6页 |