会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
软件工程开发
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2015年9月22日
函数及其调用
摘要: class Program { public void dayin() { Console.WriteLine("hollo world"); } /// /// 累加求和 /// ...
阅读全文
posted @ 2015-09-22 11:25 软件工程开发
阅读(177)
评论(0)
推荐(0)
2015年9月20日
定义一个学生的结构体,学号,姓名,身高,输入学生信息。按身高排序输出
摘要: 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 软件工程开发
阅读(2673)
评论(0)
推荐(0)
集合
摘要: //集合ArrayList:跟数组比,不限数量,不限类型 ArrayList arr = new ArrayList(); arr.Add(5); arr.Add(7); arr.Add(...
阅读全文
posted @ 2015-09-20 11:29 软件工程开发
阅读(127)
评论(0)
推荐(0)
2015年9月17日
多维数组(推箱子地图及人运行)
摘要: string[,] erwei=new string[10,10] { {"■","■","■","■","■","■","■","■","■","■"}, {"■"," "," "," "," ","■"...
阅读全文
posted @ 2015-09-17 16:19 软件工程开发
阅读(828)
评论(0)
推荐(0)
2015年9月15日
自制彩票开奖小程序
摘要: while (true) { //数组:一组同类型的数据,数组是有长度的,数组是有索引的,索引从0开始 int[] shuzu = new int[7];//定义了一个长度为6的int类型的数组 ...
阅读全文
posted @ 2015-09-15 15:48 软件工程开发
阅读(935)
评论(0)
推荐(0)
输入10个人的分数,求最高分最低分平均分及冒泡排序
摘要: //输入10个人的分数,求最高分最低分平均分 int[] fenshu = new int[10]; int max = 0; int min = 0; int sum = 0; ...
阅读全文
posted @ 2015-09-15 15:44 软件工程开发
阅读(1056)
评论(0)
推荐(0)
2015年9月14日
输入身份证号输出生日和年龄
摘要: Console.WriteLine("请输入身份证号"); string s = Console.ReadLine(); string jqn = s.Substring(6, 4); string jqy = s.Substr...
阅读全文
posted @ 2015-09-14 15:42 软件工程开发
阅读(892)
评论(0)
推荐(0)
兔子计算题(for循环应用)
摘要: //一对幼兔,1个月后长成小兔, //再过一个月长成成兔并且生下一对幼兔, //问,24个月后,有多少对兔子。 while (true) { int m, ct, xt, yt, ...
阅读全文
posted @ 2015-09-14 10:44 软件工程开发
阅读(284)
评论(0)
推荐(0)
异常语句
摘要: /异常语句 /* try { int a = int.Parse(Console.ReadLine()); } catch (Exception ex) ...
阅读全文
posted @ 2015-09-14 10:19 软件工程开发
阅读(129)
评论(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 软件工程开发
阅读(167)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告