摘要: class Program { public void dayin() { Console.WriteLine("hollo world"); } /// /// 累加求和 /// ... 阅读全文
posted @ 2015-09-22 11:25 软件工程开发 阅读(175) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace ConsoleApplication1{ class Pro... 阅读全文
posted @ 2015-09-20 11:39 软件工程开发 阅读(2622) 评论(0) 推荐(0) 编辑
摘要: //集合ArrayList:跟数组比,不限数量,不限类型 ArrayList arr = new ArrayList(); arr.Add(5); arr.Add(7); arr.Add(... 阅读全文
posted @ 2015-09-20 11:29 软件工程开发 阅读(121) 评论(0) 推荐(0) 编辑
摘要: string[,] erwei=new string[10,10] { {"■","■","■","■","■","■","■","■","■","■"}, {"■"," "," "," "," ","■"... 阅读全文
posted @ 2015-09-17 16:19 软件工程开发 阅读(816) 评论(0) 推荐(0) 编辑
摘要: while (true) { //数组:一组同类型的数据,数组是有长度的,数组是有索引的,索引从0开始 int[] shuzu = new int[7];//定义了一个长度为6的int类型的数组 ... 阅读全文
posted @ 2015-09-15 15:48 软件工程开发 阅读(887) 评论(0) 推荐(0) 编辑
摘要: //输入10个人的分数,求最高分最低分平均分 int[] fenshu = new int[10]; int max = 0; int min = 0; int sum = 0; ... 阅读全文
posted @ 2015-09-15 15:44 软件工程开发 阅读(1012) 评论(0) 推荐(0) 编辑
摘要: Console.WriteLine("请输入身份证号"); string s = Console.ReadLine(); string jqn = s.Substring(6, 4); string jqy = s.Substr... 阅读全文
posted @ 2015-09-14 15:42 软件工程开发 阅读(860) 评论(0) 推荐(0) 编辑
摘要: //一对幼兔,1个月后长成小兔, //再过一个月长成成兔并且生下一对幼兔, //问,24个月后,有多少对兔子。 while (true) { int m, ct, xt, yt, ... 阅读全文
posted @ 2015-09-14 10:44 软件工程开发 阅读(274) 评论(0) 推荐(0) 编辑
摘要: /异常语句 /* try { int a = int.Parse(Console.ReadLine()); } catch (Exception ex) ... 阅读全文
posted @ 2015-09-14 10:19 软件工程开发 阅读(125) 评论(0) 推荐(0) 编辑
摘要: int sum = 0; Console.Write("请输入数字:"); int shu = int.Parse(Console.ReadLine()); for (int i = 1; i <= shu; i++)//从1开始遍... 阅读全文
posted @ 2015-09-14 10:06 软件工程开发 阅读(161) 评论(0) 推荐(0) 编辑