
C++
文章平均质量分 57
Crob
Never work harder than you have to, work smarter instead.
展开
-
《C++标准程序库》(侯捷、孟岩 译), 2002年9月版,发现几处Bug,备忘如下
Normal07.8 磅02falsefalsefalseMicrosoftInternetExplorer4<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:原创 2008-07-08 09:03:00 · 1324 阅读 · 2 评论 -
template声明式中typename的双重意义
<!-- @page { size: 21cm 29.7cm; margin: 2cm } P { margin-bottom: 0.21cm } --> Template声明式中typename的双重意义 1、做为模板类型参数 template <typename T> 2、做为声明嵌套从属类型名称 tem原创 2008-07-13 10:24:00 · 908 阅读 · 2 评论 -
关于多态在class与templates中的区别。
关于多态在class与templates中的区别。 1、class通过virtual函数实现运行期多态。2、templates通过具现化(Instantiation)和函数重载解析实现编译其多态。原创 2008-07-13 09:57:00 · 779 阅读 · 0 评论 -
实现一个内部即有状态而且又能被配接器(function adapter)配接的仿函数
Normal07.8 磅02falsefalsefalseMicrosoftInternetExplorer4<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:原创 2008-07-08 11:14:00 · 954 阅读 · 0 评论 -
QT4编译不成功的原因,QT4的编译方法,其实很简单
网上N多QT编译不过的问题,最近经过无数次编译后总结出大部分QT编译不过的原因是在configure的时候就已经搞错了一、QT的configure,如果不带-prefix参数时默认安装路径为/usr/local/Trolltech/Qt-X.X.X,所以如果你的QT目录下在此目录下,则不能直接使用不带参数的configure二、如果带了使用configure -prefix,但不指定目录,假设QT翻译 2008-09-29 10:42:00 · 1719 阅读 · 0 评论