摘要: #ifndef _MATRIX_H#define _MATRIX_Hclass Matrix{ private: int row; // 矩阵的行数 int col; // 矩阵的列数 int n; // 矩阵元素个数 double* mtx; // 动态分配用来存放数组的空间 p... 阅读全文
posted @ 2008-06-30 22:02 NanKe Sir's Blog 阅读(2077) 评论(2) 推荐(0) 编辑
摘要: 在数据库中进行数据统计时,通常以会计月份、会计年度作为统计的时间段,例如下面的 SQL 语句: SELECT Year(f_date) AS Y, Month(f_date) AS M, SUM(f_money) AS totalMoney GROUP BY Year(f_date), Month(f_date); 但是世界各国的会计年度不尽相同,比如中、俄、德等国采用的是 1 月 - 12 月,... 阅读全文
posted @ 2008-06-30 20:51 NanKe Sir's Blog 阅读(812) 评论(5) 推荐(0) 编辑
摘要: ==============@ 在类中定义事件============== using System;// Mail 管理。class MailManager{ // 1.定义事件参数,用于向事件接受者传递附加信息。 // 事件参数类都应该继承自 System.EventArgs,并且类型名称以 EventArgs 结束。 public class MailMsgEventArg... 阅读全文
posted @ 2008-06-29 14:54 NanKe Sir's Blog 阅读(1476) 评论(0) 推荐(0) 编辑
摘要: =========@ 委托链========= MulticastDelegate 对象有一个私有字段 _prev,该字段指向另一个 MulticastDelegate对象的引用。这使得多个委托对象可以组合成为一个链表。Delegate 类中定义了三个静态方法帮助我们来操作委托链表: class System.Delegate{ // 组合 head 和 tail 所表示的链表,并返回 h... 阅读全文
posted @ 2008-06-29 03:13 NanKe Sir's Blog 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 《Microsoft .NET Framework 框架程序设计》学习笔记 声明、创建和使用委托 委托的内部实现 System.Delegate 与 System.MulticastDelegate 历史 判断两个委托对象是否相等================@ 声明、创建和使用委托================ 声明、创建和使用委托Code highlighting produced b... 阅读全文
posted @ 2008-06-28 17:22 NanKe Sir's Blog 阅读(718) 评论(0) 推荐(0) 编辑