
C#
文章平均质量分 55
南海有鹏
这个作者很懒,什么都没留下…
展开
-
统计字符
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class MyClass { public int CountChar(string m, char n)原创 2014-09-18 14:38:24 · 528 阅读 · 0 评论 -
静态方法使用
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class SelSorter { public static void ArraySort(params in原创 2014-09-25 17:30:22 · 533 阅读 · 0 评论 -
foreach语句的应用
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication4{ class Program { static void Main(string[] args) {原创 2014-09-25 07:31:30 · 643 阅读 · 0 评论 -
事件应用
/* * 烟台大学计算机学院学生 *All right reserved. *文件名称:C# *作者:孔云 *完成日期:2014年10月9日 *版本号:v1.0 *对任务及求解方法的描述部分:“新包裹”达到的事件处理 *我的程序: */using System;using System.Collections.Generi原创 2014-10-09 15:47:30 · 535 阅读 · 0 评论 -
上课铃声事件
/* * 烟台大学计算机学院学生 *All right reserved. *文件名称:C# *作者:孔云 *完成日期:2014年10月9日 *版本号:v1.0 *对任务及求解方法的描述部分:对于铃声事件,不同对象的事件处理是不同的:教师开始上课,而学生开始听课。要实现这个程序,需要先定义一个学校类,在学校类中定义铃声事件(要定义事件先定原创 2014-10-09 16:04:23 · 1270 阅读 · 0 评论 -
委托应用
/* * 烟台大学计算机学院学生 *All right reserved. *文件名称:C# *作者:孔云 *完成日期:2014年10月9日 *版本号:v1.0 *对任务及求解方法的描述部分:认识一下委托 *我的程序: */ using System;using System.Collections.Generic;us原创 2014-10-09 13:21:08 · 535 阅读 · 0 评论 -
委托多播
/* * 烟台大学计算机学院学生 *All right reserved. *文件名称:C# *作者:孔云 *完成日期:2014年10月9日 *版本号:v1.0 *对任务及求解方法的描述部分:一次委托可以调用多个方法,称为委托多播或委托组合 *我的程序: */ using System;using System.Collec原创 2014-10-09 13:45:08 · 539 阅读 · 0 评论 -
文本复制、剪切、撤销
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace Windo原创 2014-11-01 22:57:07 · 1171 阅读 · 0 评论 -
Windows加法器
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namesp原创 2014-10-14 19:30:35 · 1118 阅读 · 0 评论 -
泛型约束应用
/* * 烟台大学计算机学院学生 *All right reserved. *文件名称:c# *作者:孔云 *完成日期:2014年10月16日 *版本号:v1.0 *对任务及求解方法的描述部分:使用where关键字给Sort泛型方法添加了约束,约束T类型范围。 *我的程序: */using System;using S原创 2014-10-16 18:18:53 · 943 阅读 · 0 评论 -
泛型求反序
/* * 烟台大学计算机学院学生 *All right reserved. *文件名称:c# *作者:孔云 *完成日期:2014年10月16日 *版本号:v1.0 *对任务及求解方法的描述部分:使用泛型类Stack,实现字符串或数字的反序。 *我的程序: */using System;using System.Coll原创 2014-10-16 20:32:00 · 980 阅读 · 0 评论 -
自定义异常处理
/* * 烟台大学计算机学院学生 *All right reserved. *文件名称:c# *作者:孔云 *完成日期:2014年10月16日 *版本号:v1.0 *对任务及求解方法的描述部分:输入两个数,输出其相除的结果,并进行增加一个自定义异常类outofBoundException, *该类的父类为ApplicationExce原创 2014-10-16 19:09:41 · 1229 阅读 · 0 评论 -
绘制文字
原创 2014-11-22 09:59:51 · 615 阅读 · 0 评论 -
方法、属性的使用
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication3{ class Program { static void Main(string[] args) {原创 2014-09-25 07:36:50 · 505 阅读 · 0 评论 -
输出参数使用
用out修饰符定义的参数称为原创 2014-09-25 16:30:47 · 812 阅读 · 0 评论 -
引用型参数
用ref修饰符声明的参数为引用型参数,不开辟原创 2014-09-25 16:14:26 · 1736 阅读 · 0 评论 -
字符串求反序
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class MyClass { public string Reconvert(string str)原创 2014-09-18 16:29:57 · 741 阅读 · 0 评论 -
水仙花
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args)原创 2014-09-09 18:46:34 · 496 阅读 · 0 评论 -
回文数
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args)原创 2014-09-09 19:00:24 · 482 阅读 · 0 评论 -
输出100个【10,99】区间上的随机整数
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args)原创 2014-09-09 20:56:02 · 1200 阅读 · 0 评论 -
冒泡排序法
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args)原创 2014-09-09 20:06:12 · 465 阅读 · 0 评论 -
1~100的整数和
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args)原创 2014-09-09 20:25:19 · 684 阅读 · 0 评论 -
求奇数
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args)原创 2014-09-22 19:03:27 · 803 阅读 · 0 评论 -
字符串操作
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args)原创 2014-09-11 17:49:22 · 418 阅读 · 0 评论 -
该日期是该年第几天
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args)原创 2014-09-09 19:27:32 · 552 阅读 · 0 评论 -
又一次猜数字
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args)原创 2014-09-22 20:21:34 · 749 阅读 · 0 评论 -
只读字段的使用
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication3{ class CircleArea { readonly double radius; const double P原创 2014-09-25 07:44:09 · 647 阅读 · 0 评论 -
数组型参数使用
用params修饰符的参数称为数组参数,原创 2014-09-25 17:05:11 · 1416 阅读 · 0 评论 -
贝塞尔曲线
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Dra原创 2014-11-22 09:32:18 · 1069 阅读 · 0 评论