行易软件

少谈技术,多谈应用

博客园 首页 新随笔 联系 订阅 管理
上一页 1 2 3 4 5 6 ··· 15 下一页

2022年11月24日 #

摘要: 参考代码1: using System; namespace DelegateDemo { class Program { public delegate void Expresser(); static void Main(string[] args) { //委托, delegate Test 阅读全文
posted @ 2022-11-24 16:23 行易软件技术团队 阅读(35) 评论(0) 推荐(0) 编辑

2022年11月23日 #

摘要: 基本版: using System; namespace EventDemo1 { public delegate void CatCallEventHandler(); public class Cat { //定义猫叫事件 public event CatCallEventHandler Cat 阅读全文
posted @ 2022-11-23 08:39 行易软件技术团队 阅读(16) 评论(0) 推荐(0) 编辑

2022年11月22日 #

摘要: 参考代码: using System; namespace IndexerDemo { class StuInfo { public string Name; public string[] CouNameArray = new string[3]; public decimal[] CouSocr 阅读全文
posted @ 2022-11-22 12:07 行易软件技术团队 阅读(8) 评论(0) 推荐(0) 编辑

2022年11月17日 #

摘要: 汇总如下: using System; using System.Collections; using System.Linq; namespace SortDemo { public class MySort2 : IComparer { public int Compare(object x, 阅读全文
posted @ 2022-11-17 18:14 行易软件技术团队 阅读(47) 评论(0) 推荐(0) 编辑

2022年11月7日 #

摘要: 代码参考: using System; using System.Linq; namespace SliceDemo { class Program { static void Main(string[] args) { var myArray = new string[] { "10", "20" 阅读全文
posted @ 2022-11-07 18:07 行易软件技术团队 阅读(13) 评论(0) 推荐(0) 编辑

摘要: 用C# 或Python语言,编写控制台应用程序,实现下面的需求: 作业1: 用户从键盘输入数据,如果不是数据,显示“输入数据格式错误”。若为负数,屏幕显示“负数”,若为正数,屏幕显示为“正数”,若为零,显示为“零”。 作业2: 用户从键盘输入两个整数数据,比如:m和n,最后打印出一个m行n列矩形数字 阅读全文
posted @ 2022-11-07 09:13 行易软件技术团队 阅读(61) 评论(0) 推荐(0) 编辑

2022年10月14日 #

摘要: 代码1: using System; using System.Collections.Generic; using System.Linq; namespace LinqDistinctDemo { public class Person { public string Name { get; s 阅读全文
posted @ 2022-10-14 10:00 行易软件技术团队 阅读(21) 评论(0) 推荐(0) 编辑

2022年9月28日 #

摘要: 场景: 一个学生,请事假或病假一天以下,只需要班主任同意即可;请事假2-3天或病假2-7天,需要学生处管理部门同意;请事假或病假天数超过前面的范围,或者请休学特殊假,都需要校长同意。 任务: 采用"职责链(Chain Of Responsibilit)设计模式,通过代码近似模拟上述场景。 UML类图 阅读全文
posted @ 2022-09-28 18:06 行易软件技术团队 阅读(28) 评论(0) 推荐(0) 编辑

2022年9月23日 #

摘要: 场景: [西安航天技师学院]实训中心某工件的加工过程,有两道主要工序,ProcessA,ProcessB。工序的数量及顺序一般情况下是固定的,车间的调度员 ProcessDirector负责调度,本次任务,打算安排三台精度不同的设备 ProductBuilder1、ProductBuilder2、P 阅读全文
posted @ 2022-09-23 16:11 行易软件技术团队 阅读(17) 评论(0) 推荐(0) 编辑

2022年9月22日 #

摘要: 场景: [陕西航天职工大学] 每学期都要根据各科成绩及其它表现评选出部分 三好学生奖、单科成绩优秀奖,思想品德优秀奖等各种奖项。 三好学生评奖主要条件:学习成绩各科平均成绩80分以上,且单科成绩不低于70分;道德表现良好(>=80),包括学年内无旷课,因私事假不超过三天,病假缺勤不超过总课时的5%等 阅读全文
posted @ 2022-09-22 23:16 行易软件技术团队 阅读(39) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 15 下一页