随笔分类 -  C# 练习题

1
摘要:界面设计: 拖动timer控件进来 设置拖进来的timer控件的Tick事件 具体代码如下: 阅读全文
posted @ 2016-05-03 15:41 翻滚吧炒鸡蛋 阅读(502) 评论(0) 推荐(0)
摘要:18身份证号码的结构 公民身份号码是特征组合码,由十七位数字本体码和一位校验码组成。 排列顺序从左至右依次为:六位数字地址码,八位数字出生日期码,三位数字顺序码和一位校验码。1、地址码 表示编码对象常住户口所在县(市、旗、区)的行政区域划分代码,按GB/T2260的规定执行。2、出生日期码 ... 阅读全文
posted @ 2015-12-24 02:13 翻滚吧炒鸡蛋 阅读(626) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleA... 阅读全文
posted @ 2015-12-22 10:43 翻滚吧炒鸡蛋 阅读(1026) 评论(0) 推荐(0)
摘要:窗体设计:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using Syste... 阅读全文
posted @ 2015-12-20 23:53 翻滚吧炒鸡蛋 阅读(614) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleA... 阅读全文
posted @ 2015-12-20 20:15 翻滚吧炒鸡蛋 阅读(732) 评论(6) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleA... 阅读全文
posted @ 2015-12-19 00:34 翻滚吧炒鸡蛋 阅读(460) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleA... 阅读全文
posted @ 2015-12-18 22:55 翻滚吧炒鸡蛋 阅读(328) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleA... 阅读全文
posted @ 2015-12-18 19:29 翻滚吧炒鸡蛋 阅读(1337) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleA... 阅读全文
posted @ 2015-12-17 15:00 翻滚吧炒鸡蛋 阅读(284) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleA... 阅读全文
posted @ 2015-12-17 03:16 翻滚吧炒鸡蛋 阅读(253) 评论(3) 推荐(0)
摘要:编写一个窗体应用程序,计算n的阶乘,显示其结果,同时,将结果显示在一个标签中。新建窗体应用程序(如下),新建控件label1,label2,label3,textBOX1,button1,button2label1的Text属性改为“计算阶乘演示”label2的Text属性改为“请输入需要的阶乘数”... 阅读全文
posted @ 2015-12-14 23:55 翻滚吧炒鸡蛋 阅读(628) 评论(0) 推荐(0)
摘要:新建窗体应用程序(如下),新建控件label1,label2,label3,textBOX1,button1,button2label1的Text属性改为“计算闰年演示”label2的Text属性改为“输入年份”button1的Text属性改为“确定”button1的Text属性改为“退出”完整代码... 阅读全文
posted @ 2015-12-14 20:54 翻滚吧炒鸡蛋 阅读(435) 评论(11) 推荐(0)
摘要:新建窗体应用程序(如下),新建控件label1,label2,label3,label4,label5,textBOX1,textBOX2,button1,button2label1的Text属性改为“随机数演示”label2的Text属性改为“最大值”label3的Text属性改为“最小值”lab... 阅读全文
posted @ 2015-12-14 11:51 翻滚吧炒鸡蛋 阅读(579) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 骑... 阅读全文
posted @ 2015-12-12 21:15 翻滚吧炒鸡蛋 阅读(369) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 骑... 阅读全文
posted @ 2015-12-12 04:27 翻滚吧炒鸡蛋 阅读(331) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 骑... 阅读全文
posted @ 2015-12-12 02:58 翻滚吧炒鸡蛋 阅读(461) 评论(0) 推荐(0)
摘要:比较两个数的大小,自定义比较两个整数的大小的方法:如果第一个数大,返回1如果相等返回0如果第一个数小,返回-1在Main()方法中输入两个数,调用这个方法示例: 请输入两个数: 45 56 第二个数大 按任意键继续...... 1 using System; 2 using System.... 阅读全文
posted @ 2015-12-04 11:43 翻滚吧炒鸡蛋 阅读(1157) 评论(0) 推荐(0)
摘要:编程输出九九乘法表 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace... 阅读全文
posted @ 2015-11-20 23:20 翻滚吧炒鸡蛋 阅读(866) 评论(5) 推荐(0)
摘要:编写一段程序,运行时向用户提问“你考了多少分?(0~100)”,接受输入后判断其等级并显示出来。判断依据如下:等级={优 (90~100分);良 (80~89分);中 (60~69分);差 (0~59分);} 1 using System; 2 using System.Collections.Ge... 阅读全文
posted @ 2015-11-20 23:05 翻滚吧炒鸡蛋 阅读(3774) 评论(6) 推荐(0)

1