![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
Supreme_One
这个作者很懒,什么都没留下…
展开
-
C#List学习
List命名空间:System.Collections.GenericList 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 · 328 阅读 · 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 · 517 阅读 · 0 评论 -
C#学习总结
函数 Convert.ToInt32() 把用户输入的数据转换为 int 数据类型,因为 Console.ReadLine() 只接受字符串格式的数据。后缀U 和 L 分别表示 unsigned 和 long。\b 退格键 \\ \ 字符 \f 换页符@"" 里面全部为字符,转义字符也不例外const 常量^运算符 0 ^ 1转载 2017-11-10 15:18:45 · 292 阅读 · 0 评论