摘要: 结构体:就是一个自定义的集合,里面可以放各种类型的元素,用法大体跟集合一样。 一、定义的例子: struct student { public int nianling; public int fenshu; public string name; public string sex; public 阅读全文
posted @ 2016-07-03 11:40 Dream&er 阅读(414) 评论(0) 推荐(0) 编辑
摘要: public void Out(out int a, out int b) {//out相当于return返回值 //可以返回多个值 //拿过来变量名的时候,里面默认为空值 a=1; b=2; } static void Main(string[] args) { int a = 0; int b 阅读全文
posted @ 2016-07-03 11:33 Dream&er 阅读(488) 评论(2) 推荐(0) 编辑