上一页 1 2 3 4 5 6 ··· 19 下一页
摘要: C语言强制类型转换过于粗暴,任意类型之间都可以进行转换,编译很难判断其正确性; 难于定位,在源码中无法快速定位所有使用强制类型转换的语句。 C++将强制类型转换分为4种不同的类型:static_cast、const_cast、dynamic_cast、reinterpret_cast。 用法:xxx 阅读全文
posted @ 2016-09-10 21:23 SuGuolin 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-10 07:59 SuGuolin 阅读(122) 评论(0) 推荐(0) 编辑
摘要: global 全局,全球priority 优先load 平衡 balance 负载 cluster 集群subscribe 订阅filter 过滤,滤除,滤波器producer 生产者consume 消费者payload 有效负载merge 合并reject 拒绝declare 声明。宣布guard 阅读全文
posted @ 2016-09-08 15:34 SuGuolin 阅读(229) 评论(0) 推荐(0) 编辑
摘要: C++ 编译器能够兼容C语言发编译方式 C++编译器会优先使用C++ 编译的方式 extern 关键字能强制让C++编译器进行C方式的编译 external “C” { //do C-style compilation here } 阅读全文
posted @ 2016-09-04 15:33 SuGuolin 阅读(193) 评论(0) 推荐(0) 编辑
摘要: *** [../../../../lib/libQtWebKit.so.4.7.4] Error 1make[1]: Leaving directory `/home/cloverbox/qt-everywhere-opensource-src-4.7.4/src/3rdparty/webkit/W 阅读全文
posted @ 2016-09-04 14:19 SuGuolin 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 引用作为变量名而存在,因此在一些场合可以代替指针 引用相对于指针来说具有更好的可读性和实用性 void swp (int & a, int &b) { int t = a; a =b; b =t; } const 引用 --在C++中可以声明 const 引用 --const Type& name 阅读全文
posted @ 2016-09-04 08:25 SuGuolin 阅读(217) 评论(0) 推荐(0) 编辑
摘要: RabbitMQ消息队列(一): Detailed Introduction 详细介绍 RabbitMQ消息队列(二):”Hello, World“ global 全局,全球的super 超级的,全球priority 优先级load balance 负载平衡cluster 集群subscribe 订 阅读全文
posted @ 2016-09-02 17:52 SuGuolin 阅读(96) 评论(0) 推荐(0) 编辑
摘要: C++ 在C的基础上对const 进行了进化处理 --当碰见const声明时在符号表中放入常量 --编译过程中若发现使用常量则直接以符号表中的值替换 --编译过程中若发现下述情况则给对应的常量分配存储空间 对const 常量使用了extern 对const 常量使用 & 操作符 注意:C++编译器虽 阅读全文
posted @ 2016-09-02 01:02 SuGuolin 阅读(121) 评论(0) 推荐(0) 编辑
摘要: C++所有的变量都可以在需要使用时再定义。 C语言中的变量都必须在作用域开始的位置定义。 register 关键字请求编译器将局部变量存储于寄存器中 在C语言无法获取register 变量的地址 在C++中可以取得 register 变量的地址 C++编译器有自己的优化方式,所以几乎不用regist 阅读全文
posted @ 2016-09-02 00:11 SuGuolin 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 一、multiprocessing中使用子进程概念 from multiprocessing import Process 可以通过Process来构造一个子进程 p = Process(target=fun,args=(args)) 再通过p.start()来启动子进程 再通过p.join()方法 阅读全文
posted @ 2016-09-01 14:36 SuGuolin 阅读(5174) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 19 下一页