
C#
Supreme_One
这个作者很懒,什么都没留下…
展开
-
C#List学习
List 命名空间:System.Collections.Generic List mList = new List(); //添加一组数组 string[] tem={"ha","hunter","tom","loc","jml"}; List testlist=new List(tem);//List.AddRange(tem); //添加一个元素 Lis转载 2017-11-08 21:29:17 · 393 阅读 · 0 评论 -
C#Stack堆栈学习
堆栈 using System.Collections; 属性:Count 获取Stack中包含的元素个数 //初始化 Stack st=new Stack(); //移除所有元素 public void Clear(); //判断某个元素是否在Stack中 public bool Contains(object obj); //返回顶部对象,但不转载 2017-11-08 21:30:45 · 599 阅读 · 0 评论 -
C#学习总结
函数 Convert.ToInt32() 把用户输入的数据转换为 int 数据类型,因为 Console.ReadLine() 只接受字符串格式的数据。 后缀U 和 L 分别表示 unsigned 和 long。 \b 退格键 \\ \ 字符 \f 换页符 @"" 里面全部为字符,转义字符也不例外 const 常量 ^运算符 0 ^ 1转载 2017-11-10 15:18:45 · 338 阅读 · 0 评论