上一页 1 2 3 4 5 6 ··· 63 下一页
摘要: 最近粗略的看了些移动开发的文章,才恍然大悟这个世界已经变了。当我的了解还仅限于Object-c based iOS开发和Java-based Andriod native app的开发方式时,HTML5原来早就已经入侵移动开发领域了。最近有个叫PhoneGap的东东被Adobe收购了。我研究了一下,最终理解了:PhoneGap是纯用HTML5+CSS3+Javascript来开发的,然后,它很聪明的还是基于native app的SDK的方式(as wrapper)wrap成native app的样子,从而可以在appstore和android market上发布——一份代码,到处运行!Adob 阅读全文
posted @ 2011-10-18 22:31 能巴 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 浏览器是怎么工作的? http://www.html5rocks.com/en/tutorials/internals/howbrowserswork/相当不错的一个教程 阅读全文
posted @ 2011-09-28 11:57 能巴 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 1. 什么是rValue?lValue呢?rValue主要是指没有名字的变量(即临时变量/对象);lValue主要是指有名字的变量。除了lValue都是rValue(废话)。下面的例子可以比较直观的帮助理解:int&& n = 42; // OK; 42 is an rvalue; n is rvalue reference.int k = n; // OK; n is rValue reference and is lValue.int&& j = k; // Error; k is an lvalueint&& m = k+1; // OK, 阅读全文
posted @ 2011-09-02 17:04 能巴 阅读(984) 评论(0) 推荐(0) 编辑
摘要: rValue reference:http://thbecker.net/articles/rvalue_references/section_01.htmlBelow is the full article from here:The Biggest Changes in C++11 (and Why You Should Care) It’s been 13 years since the first iteration of the C++ language. Danny Kalev, a former member of the C++ standards committee... 阅读全文
posted @ 2011-08-26 17:56 能巴 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 0. Stack unwinding.When an exception is thrown and control passes from a try block to a handler, the C++ run time calls destructors for all automatic objects constructed since the beginning of the try block. This process is called stack unwinding.Two notes: 1) local objects will be destructed in re. 阅读全文
posted @ 2011-07-28 13:43 能巴 阅读(307) 评论(0) 推荐(0) 编辑
摘要: http://blogs.msdn.com/b/ricom/archive/2003/12/19/44697.aspx 阅读全文
posted @ 2011-07-26 17:59 能巴 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 根据effective STL的rule,从效率和正确性角度考虑,使用STL的算法要比自己写循环遍历要effective。之前一直没讲究过这个。从现在起,要注意起来了。先学起来下面三个1. find2. find_if 3. for_each它们都会用到mem_fun, mem_fun1(可以接受一个参数),bind2nd(ptr_fun(funcName), argument)。详见下面的例子(来自:http://www.builder.com.cn/2008/0129/723326.shtml) 比如我们有下面的类: classClxECS{public:intDoSomething(). 阅读全文
posted @ 2011-07-19 17:37 能巴 阅读(2462) 评论(0) 推荐(1) 编辑
摘要: 今天看了一点QT相关的代码,想要弄明白client application中QCanvas的derived class(那里是获取事件信息的源头)是何时被创建并注入到QT中去的。顺便了解了些QT信号和槽的知识。note down:1. 首先,QT signal 和slot都是QT自定义的东西,非C++所有。那么包含有这些玩意的h和cpp文件是如何编译的呢?分下面几步:1)调用QT自家的moc编译工具对这些玩意进行解析进而生成标准c++编译器支持的代码。 (A.h/cpp) -> (A.moc.h/cpp)2)把A.moc.h/cpp交给C++编译器进行编译。More:元对象编译器 moc 阅读全文
posted @ 2011-07-13 16:25 能巴 阅读(809) 评论(0) 推荐(0) 编辑
摘要: In debugging, it's always annoying to step into CString like classes as in most cases we don't need to get into there. There does exist solution to NoStepInto functions/classes you don't intend to step into:1. Ahead of VS20101) Look into this article to add something into Registry: How t 阅读全文
posted @ 2011-07-01 16:30 能巴 阅读(254) 评论(0) 推荐(0) 编辑
摘要: Two ways to make use of it:1) directly declare a function pointer variable at the place where it's required. like below:void (*pFunc)(int); // pFunc is a variable herepFunc = &FuncA;pFunc(2);2) typedef a function poiner type and then use it. like below:typedef void (*pFunc)(int);pFunc pFuncO 阅读全文
posted @ 2011-07-01 15:42 能巴 阅读(144) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 63 下一页