
c++
stephen80
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
learning c++
C++ idiom --especially for java programmer一. Four program paradigms Procedure, Object oriented , generic, stl . 二. Resource managementRAII , Resource acquisition is initialization ...原创 2009-09-22 18:54:07 · 125 阅读 · 0 评论 -
function object adapter
自己输入一遍代码,总是胜过仅仅阅读。template InputIterator Find_if(InputIterator& first, InputIterator& end, Predicate pred){ while( first != end && !pred (*first)) ++ first; return first;...2010-04-14 16:14:02 · 157 阅读 · 0 评论 -
trait and policy
Trait : type as first class value, great.template struct AverageTrait{ typedef T TAverage;};templatestruct AverageTrait{ typedef float TAverage;};template typename Av...2010-04-13 17:33:58 · 176 阅读 · 0 评论 -
jni tut
Compile HelloWorld.java javac HelloWorld.javaGenerate HelloWorld.h javah HelloWorld#include #include "HelloWorld.h"#include JNIEXPORT void JNICALL Java_HelloWorld_displayHelloWorld...原创 2009-06-08 13:56:36 · 95 阅读 · 0 评论 -
gcc ,scons
1 import os 2 env = Environment() 3 4 # Default build options 5 # Multi-core parallel build 6 SetOption('num_jobs', 4) 7 8 # to create only link (not copy) of source code into t...原创 2009-05-20 11:25:36 · 115 阅读 · 0 评论 -
debian, code blocks 开发环境安装过程
已经有 xp linux core 安装1。下载 http://unetbootin.sourceforge.net/ unetbootin.2. 制作usb linux 启动盘 按照说明即可。3 。用usb 盘启动,开始安装 拔掉usb 盘4。按照步骤即可 主要 选一个快的mirror, 我选的 jp :nara.wide ,飞快...原创 2009-05-15 16:27:45 · 195 阅读 · 0 评论 -
scons 的注意点
mail scons --silent 总结一下 scons 的注意点。1. target , source scons 缺省认为是 [file,file] list. 如果是dir 需要 [Dir(dd),Dir(ee)) ] , 这个 Dir(ddd) 的类型是 SCons.Node.FS.Dir ,可以用 str( ) 转为str 否...原创 2009-11-06 15:37:49 · 228 阅读 · 0 评论 -
scons 问题解决
今天遇到scons 问题,解决,庆贺。python 调试http://blog.youkuaiyun.com/magicbreaker/archive/2009/01/11/3754733.aspx_DEBUG=True if _DEBUG == True: import pdb pdb.set_trace()scons 的两个问题1。 so...原创 2009-11-04 11:49:13 · 178 阅读 · 0 评论 -
c++ study
1。template typedef 可以在 class 内完成。2。 一路 const原创 2009-10-30 19:33:11 · 86 阅读 · 0 评论 -
gcc linker
gcc link lib 的时候,只向后找, 如果循环依赖, lib 可以重复 l .passing const as this argument of discards qualifiers.const 函数只能调用 const 函数,即使某个函数本质上没有修改任何数据,但没有声明为const,也是不能被const函数调用的。...原创 2009-10-28 10:05:02 · 130 阅读 · 0 评论 -
scons implicit dependency
报:Implicit dependency `dist/sdk' not found, needed by target `package/ss_debug_64'.scons: building terminated because of errors.是因为 cache解决:SetOption('implicit_cache', 0)scons -Q...原创 2009-10-22 13:46:44 · 477 阅读 · 0 评论 -
java 程序员学习c++
下载各种书籍[list][*]购买了 "ruminations on c++","c++ prime plus", "exceptional c++ 40 rules"[*]阅读 "ruminations on c++" 的前几章 这个增加了我(java expert)对c++ 学习的兴趣,启发我去找给java 程序员看的c++ book[*]下载“java to cpp ”(...原创 2009-04-07 18:38:53 · 422 阅读 · 0 评论 -
iterator trait
struct input_iterator_tag {};templatestruct Iterator{ typedef T Tag;};template class InputIterator:public Iterator{};template void Advance(Iterator& i, Distance di, ...2010-04-14 16:15:16 · 121 阅读 · 0 评论