- 博客(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
2007-04-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人