自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

farproc's blog

理性爱国

  • 博客(6)
  • 资源 (1)
  • 收藏
  • 关注

原创 [原创]关于C++的构造函数, 复制构造函数 和 operator =

关于C++的构造函数, 复制构造函数 和 operator =1.构造函数    构造函数的定义我就不说了,我想说的只有一点,看下面的例子:class C1 {public: //数据成员 int m_n; //构造函数 C1(int n = 0) {  cout   m_n = n; }};int _tmain(int argc, _TCHAR* argv[]){ C1 o(10);//1.调用

2005-04-21 18:59:00 3137

原创 VC中的Unicode编程

VC中的Unicode编程    在windows下编程还是支持unicode吧,大势所趋啊,window 2k以后的系统底层都是基于Unicode的,就算你调用ANSI的API(以A结尾比如SetWidowsTextA),系统也会在你的进程默认堆上动态分配一块内存,存放转换后的Unicode字符串,然后把转换后的字符串传递给API,如果调用了返回值为ANSI字符串的API,Windows会在后台

2005-04-20 19:48:00 2165

原创 设计模式可复用面向对象软件的基础(1)--图例

开始学习 设计模式, 从网上下了个《设计模式可复用面向对象软件的基础》,看了引言,发现自己以前写过那么多自以为不错的代码,但用设计模式的思想来看,全都是垃圾!!看来要好好充电了。千里之行,始于足下,先把设计模式的图例总结一下:  图例:  1).实例化  下图中的虚箭头线表示一个类实例化另一个类的对象,箭头指向被实例化的对象的类。    2).继承  我们以竖线和三角表示子类关系,  如下图所示。

2005-04-19 13:08:00 2902 3

原创 md5算法研究(1)

MD5算法研究 2004-04-05 作者: 王可 综述  MD5的全称是Message-Digest Algorithm 5(信息-摘要算法),在90年代初由MIT Laboratory for Computer Science和RSA Data Security Inc的Ronald L. Rivest开发出来,经MD2、MD3和MD4发展而来。它的作用是让大容量信息在用数字签名软件签署私人密

2005-04-16 12:51:00 1751

原创 如何把一个char重复若干次生产std::string

在使用std::string时如果要得到一个类似 "**********" 的字符串可以用循环:string s;for(int n =0; n { s = s + *;}但是看起来不是那么简便与"专业",有更好的办法: string s;s.resize(10,*);string的resize()可以扩充(或缩减)s到一定长度,并用指定的字符填充新扩充的空间.还可以这么用:s = "ab

2005-04-15 21:14:00 2392 4

原创 [原创&译]向其他进程注入代码的三种方法

向其他进程注入代码的三种方法原版地址:http://www.codeproject.com/threads/winspy.asp?df=100&forumid=16291&select=1025152&msg=1025152下载整个压缩包下载WinSpy 作者:Robert Kuster翻译:袁晓辉(hyzs@sina.com)摘要:如何向其他线程的地址空间中注入代码并在这个线程的上下文中执行之。

2005-04-15 08:58:00 12805 6

Object-Oriented Design Heuristics

Upon completion of an object-oriented design, you are faced with a troubling question: "Is it good, bad, or somewhere in between?" Seasoned experts often answer this question by subjecting the design to a subconscious list of guidelines based on their years of experience. Experienced developer Arthur J. Riel has captured this elusive, subconscious list, and in doing so, has provided a set of metrics that help determine the quality of object-oriented models.Object-Oriented Design Heuristics offers insight into object-oriented design improvement. The more than sixty guidelines presented in this book are language-independent and allow you to rate the integrity of a software design. The heuristics are not written as hard and fast rules; they are meant to serve as warning mechanisms which allow the flexibility of ignoring the heuristic as necessary. This tutorial-based approach, born out of the author's extensive experience developing software, teaching thousands of students, and critiquing designs in a variety of domains, allows you to apply the guidelines in a personalized manner.The heuristics cover important topics ranging from classes and objects (with emphasis on their relationships including association, uses, containment, and both single and multiple inheritance) to physical object-oriented design. You will gain an understanding of the synergy that exists between design heuristics and the popular concept of design patterns; heuristics can highlight a problem in one facet of a design while patterns can provide the solution.Programmers of all levels will find value in this book. The newcomer will discover a fast track to understanding the concepts of object-oriented programming. At the same time, experienced programmers seeking to strengthen their object-oriented development efforts will appreciate the insightful analysis. In short, with Object-Oriented Design Heuristics as your guide, you have the tools to become a better software developer.

2007-04-29

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除