C/C++

C/C++ programming skills
VC++编译器中一些常见precompiling 指令介绍
摘要: 本文介绍了在VC中常见的预编译指令,包括#pragma once,#pragma comment() ,_cdecl,_stdcall等等。阅读全文

posted @ 2008-09-12 10:22 飞天舞者 阅读(132) | 评论 (0) 编辑

函数调用的区别:_cdecl以及_stdcall
摘要: 本文介绍了函数的不同调用方式,主要介绍了_stdcall和_cdecl的区别阅读全文

posted @ 2008-09-11 18:03 飞天舞者 阅读(406) | 评论 (0) 编辑

深入剖析C++中的string类
摘要: C++中的定义了字符串类string, 其和C中的string.h有着很大区别,但是很多时候由于程序的延续性需要互相操作,因此需要对于string类有很深入的了解。阅读全文

posted @ 2008-07-19 16:26 飞天舞者 阅读(2519) | 评论 (1) 编辑

静态链接库LIB和动态链接库DLL的区别 创建和示例
摘要: 静态链接库与动态链接库都是共享代码的方式...阅读全文

posted @ 2008-07-05 14:35 飞天舞者 阅读(10497) | 评论 (0) 编辑

运算转换符static_cast,const_cast,reinterpret_cast,dynamic_cast之间的区别
摘要: 运算转换符static_cast,const_cast,reinterpret_cast,dynamic_cast之间的区别阅读全文

posted @ 2008-07-01 14:56 飞天舞者 阅读(1253) | 评论 (0) 编辑

C++中多态的实现原理
摘要: 本文通过由代码调试和runtime时候的Debug,讲解了多态的实现原理及过程,从而有助于深入理解多态的概念。阅读全文

posted @ 2008-06-30 16:27 飞天舞者 阅读(1193) | 评论 (8) 编辑

C++本质:类的赋值运算符=的重载,以及深拷贝和浅拷贝
摘要: 在面向对象程序设计中,对象间的相互拷贝和赋值是经常进行的操作。
如果对象在申明的同时马上进行的初始化操作,则称之为拷贝运算。例如:
class1 A("af"); class1 B=A;
此时其实际调用的是B(A)这样的浅拷贝操作。
如果对象在申明之后,在进行的赋值运算,我们称之为赋值运算。例如:
class1 A("af"); class1 B;
B=A;
此时实际调用的类的缺省赋值函数B.operator=(A);
不管是浅拷贝还是赋值运算,其都有缺省的定义。也就是说,即使我们不overload这两种operation,仍然可以运行。
那么,我们到底需不需要overload这两种operation 呢?
阅读全文

posted @ 2008-06-03 11:15 飞天舞者 阅读(3746) | 评论 (0) 编辑

C/C++ Basics--function pointer

posted @ 2008-04-08 16:03 飞天舞者 阅读(71) | 评论 (0) 编辑

C/C++ Basic-- the differs between [malloc&free] and [new &delete]

posted @ 2008-04-08 15:05 飞天舞者 阅读(33) | 评论 (0) 编辑

C/C++ Basics-->about #define, const

posted @ 2008-04-08 14:10 飞天舞者 阅读(98) | 评论 (0) 编辑

OPP Basic--if virtual functions are so powerful, can we declare all member functions virtual?

posted @ 2008-02-26 11:32 飞天舞者 阅读(32) | 评论 (0) 编辑

OOP Bisic-desctructor can be virtual,while constructer can not? why?

posted @ 2008-02-26 11:21 飞天舞者 阅读(29) | 评论 (0) 编辑

OOP Basic--Constructor&Destructor
摘要: 本文深刻讲述了为什么有些基类的析构函数要设为virtual?阅读全文

posted @ 2008-02-26 10:59 飞天舞者 阅读(73) | 评论 (0) 编辑

OOP Basic--Is the class declaration right?[const]

posted @ 2008-02-26 10:31 飞天舞者 阅读(27) | 评论 (0) 编辑

OOP Basic--what's the diff between struct & class?

posted @ 2008-02-26 10:27 飞天舞者 阅读(43) | 评论 (0) 编辑

STL template&Container--function point & generic class

posted @ 2008-02-26 09:57 飞天舞者 阅读(45) | 评论 (0) 编辑

STL template&Container--how to change normal function into generic function.

posted @ 2008-02-26 09:45 飞天舞者 阅读(20) | 评论 (0) 编辑

Programming Basic--what is the output of the following code?

posted @ 2008-02-26 09:05 飞天舞者 阅读(28) | 评论 (0) 编辑

Programming Basic--what's the diff between const and #define?

posted @ 2008-02-26 08:58 飞天舞者 阅读(29) | 评论 (0) 编辑

Programming Basic--what's the use of "ifndef/define/endif";

posted @ 2008-02-26 08:51 飞天舞者 阅读(55) | 评论 (0) 编辑

Programming Basic--why we need to add ' extern "C" ' in C++ program when calling the function which is complied by C complier?

posted @ 2008-02-26 08:49 飞天舞者 阅读(41) | 评论 (0) 编辑

导航

<2012年2月>
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910

公告

昵称:飞天舞者
园龄:4年1个月
粉丝:2
关注:0

搜索

 
 

常用链接

我的标签

随笔分类

随笔档案

相册

积分与排名

  • 积分 - 49362
  • 排名 - 2147

最新评论

阅读排行榜

评论排行榜

推荐排行榜

For more information about me, feel free email to me winston.he@hotmail.com