
c++
cyclejdm
这个作者很懒,什么都没留下…
展开
-
auto、register、static、extern等存储类修饰符的区别
<br />auto、register、static、extern等存储类修饰符的区别 - [C/C++编程 ]<br />版权声明 :转载时请以超链接形式标明文章原始出处和作者信息及本声明 <br />http://kimva.blogbus.com/logs/19329180.html<br />一、标识符的链接(linkage)<br />(1)外部链接<br />表示在整个程序中(多个程序文件)是相同的函数或对象。常见的有,在函数体外声明的extern变量。<br />(2)内部链接<br />表示转载 2011-02-25 13:33:00 · 491 阅读 · 0 评论 -
new malloc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~原创 2011-09-09 14:28:44 · 401 阅读 · 0 评论 -
1+2+3+...+n
#include using namespace std;templatestruct CalCls{ enum {sum = CalCls::sum + N};};template<>struct CalCls{ enum {sum = 0};};int main(){ cout::sum<<endl; return 0;转载 2012-07-25 15:15:24 · 999 阅读 · 0 评论 -
vs2010编译OVALInterpreter
win7编译OVALInterpreter遇到的主要问题是编译它所用到的第三方库,首先是pcre,这个没有遇到什么问题,略过,其次是libgcrypt,这是一个GNU环境下的软件包,在windows下编译需要使用mingw,由于此前从未使用过,所以遇到了不少麻烦,1,下载mingw,位于sourceforge上,只提供在线安装包,网速差的时候一个接着一个的Download Error,于是找来原创 2012-09-01 11:35:59 · 1093 阅读 · 0 评论 -
c++ final类
#include using namespace std;template class BB;template class BA{ friend class BB; private: BA(){cout<<"BA"<<endl;}};template class BB:virtual private BA{ public: BB(){cout <<"BB"<<endl;原创 2012-10-04 16:21:47 · 590 阅读 · 0 评论 -
链表环及其相关问题
http://www.cnblogs.com/alexzp/archive/2011/12/19/2293488.html转载 2012-09-19 11:09:39 · 405 阅读 · 0 评论