摘要: // ConsoleApplication2.cpp : Defines the entry point for the console application.// #include "stdafx.h"#include "FlyCapture2.h"#include <iostream>#inc 阅读全文
posted @ 2016-05-30 15:33 bshaozi 阅读(975) 评论(0) 推荐(0) 编辑
摘要: bool screenshot(const char* filename){GLenum lastBuffer;GLbyte* pBits = 0; // 图像数据unsigned long lImageSize;GLint iViewport[4]; // 视图大小glGetIntegerv(GL 阅读全文
posted @ 2016-05-27 09:41 bshaozi 阅读(2166) 评论(0) 推荐(0) 编辑
摘要: 0. 静态,动态转换 statci_cast 一般用于同一类型的转化,可以不是指针和引用: 如:pKernel = static_cast<DynamicKernel*>(xGroup->mpCompiledFormula);,这里 xGroup->mpCompiledFormula就是Dynami 阅读全文
posted @ 2016-05-26 09:14 bshaozi 阅读(189) 评论(0) 推荐(0) 编辑
摘要: find ./ \( -type f \) -exec dos2unix {} \; find ./ * -exec touch {} \; 阅读全文
posted @ 2016-05-26 09:13 bshaozi 阅读(199) 评论(0) 推荐(0) 编辑
摘要: awk 'NF {if(NR > 500){print $0 "\n"}else{print $0}}' Bloom_result.csv > ./Bloom.csv awk '{print $0"\n"}' Bloom_result.csv > ./Bloom.csv awk '{print $0 阅读全文
posted @ 2016-05-26 09:13 bshaozi 阅读(436) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h" #include "string.h" #include <iostream> #include <pthread.h> #include <vector> #include <assert.h> pthread_mutex_t mutex = PTHREAD_ 阅读全文
posted @ 2016-05-26 09:12 bshaozi 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 命令 说明 命令 说明 run 运行某个程序 list 显示源程序 break 设置断点 Info local 显示局部变量 watch 监视某个变量 Info break 显示断点 next 单步,函数跳过 display 显示变量或函数值 step 单步,函数跳入 delete/clear 删除 阅读全文
posted @ 2016-05-26 09:12 bshaozi 阅读(95) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h" #include "string.h" #include <iostream> #include <pthread.h> pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; class Product { pri 阅读全文
posted @ 2016-05-26 09:11 bshaozi 阅读(91) 评论(0) 推荐(0) 编辑
摘要: throw和throws的区别::::: 区别四: throw语句用在方法体内,表示抛出异常,由方法体内的语句处理 throws语句用在方法声明后面,表示再抛出异常,由调用这个方法的上一级方法中的语句来处理. 区别五: throws主要是声明这个方法会抛出主这种类型的异常,使其他地方调用它时知道要捕 阅读全文
posted @ 2016-05-26 09:10 bshaozi 阅读(187) 评论(0) 推荐(0) 编辑
摘要: vector是可以快速地在最后添加删除元素,并可以快速地访问任意元素list是可以快速地在所有地方添加删除元素,但是只能快速地访问最开始与最后的元素deque在开始和最后添加元素都一样快,并提供了随机访问方法,像vector一样使用[]访问任意元素,但是随机访问速度比不上vector快,因为它要内部 阅读全文
posted @ 2016-05-26 09:10 bshaozi 阅读(217) 评论(0) 推荐(0) 编辑