
C++
yayi911
这个作者很懒,什么都没留下…
展开
-
关于PUBLIC、PROTECTED、PRIVATE继承
今天,对继承方式有了一点理解,写下来。“老子 ”——基类“儿子”——派生类(由于C++支持多继承,所以一个儿子可以有多个老子)怎么继承,决定于儿子,而非老子。 儿子声明说:我要把我爸的东西公开的继承过来(PUBLIC)。那就是说:我爸的东西我是原封不动的拿过来用。在我爸那里是公有的,在我这儿也是公有的(别人也可以用),在我爸那儿是保护的,在我这儿还是保护的(只有我原创 2007-06-07 15:34:00 · 461 阅读 · 0 评论 -
关于二级指针
#include "stdio.h"#include "malloc.h"//When you want to allocate memory in function inside, you should use the indirect pointer to manipulate the pointer.// #define SE#ifdef SEvoid test_malloc(char原创 2008-01-15 14:13:00 · 339 阅读 · 0 评论 -
编译选项引发的ERROR C2275:illegal use of this type as an expression
error C2275: CONTACT_e_MYFAVES_Return : illegal use of this type as an expression: see declaration of CONTACT_e_MYFAVES_Returnwhy ? The declaration of CONTACT_e_MYFAVES_Return is ok, had be原创 2008-01-17 17:27:00 · 2249 阅读 · 0 评论