2016年10月11日
摘要: 转自:http://netsmell.com/post/how-sort-10-billion-data.html?ref=myread 海量数据处理/外部归并排序 - 分治.cppp 今天要给100亿个数字排序,100亿个 int 型数字放在文件里面大概有 37.2GB,非常大,内存一次装不下了。 阅读全文
posted @ 2016-10-11 10:24 邶风 阅读(8386) 评论(0) 推荐(0) 编辑
  2016年10月9日
摘要: 进位,余数,注意判断i ,j 的值,这两个字符串长度不一定相等最后一个数据的处理 #include <iostream>#include <string>using namespace std; string addStr(string str1, string str2){ string str; 阅读全文
posted @ 2016-10-09 17:42 邶风 阅读(163) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <time.h> #define CLOCKS_PER_SEC ((clock_t)1000) int binsearch(int, int array[], int n); int main(){ int array[] = {2, 5, 6, 阅读全文
posted @ 2016-10-09 14:55 邶风 阅读(171) 评论(0) 推荐(0) 编辑
  2016年8月1日
摘要: <taskpackage styleId="styles/2dc70235-e48b-4e11-b074-3c3f773ae1f3" id="3333" type="normal"> <playvideo isFlash="false"> <group times="5618" filename=" 阅读全文
posted @ 2016-08-01 16:42 邶风 阅读(2606) 评论(0) 推荐(0) 编辑
  2016年7月25日
摘要: 抓包指令 tcpdump -i eth0 dst port 14000 磁盘空间查看指令 df -h du -sh du -hd1 设置组播路由 在网络配置文件中添加 up route add -net 225.1.1.0 netmask 255.255.255.0 eth0 设置网络: ifcon 阅读全文
posted @ 2016-07-25 16:16 邶风 阅读(303) 评论(0) 推荐(0) 编辑
  2016年6月6日
摘要: ffmpeg跟sdl的学习过程:一、版本信息:ffmpeg-3.0.2.tar.bz2SDL2-2.0.4.tar.gz二、编译过程:1、ffmgeg的编译:./configure --enable-shared --disable-yasm --prefix=/usr/local/ffmpegma 阅读全文
posted @ 2016-06-06 15:43 邶风 阅读(796) 评论(0) 推荐(0) 编辑
  2016年5月20日
摘要: void MainWindow::drawText(int font_size, QString str, int n){ QPainter p; QSize size(460, font_size); //指定图片大小; QImage* image = new QImage(size, QImag 阅读全文
posted @ 2016-05-20 17:22 邶风 阅读(854) 评论(0) 推荐(0) 编辑
  2016年4月17日
摘要: 根据<<芯片手册>>查看相关内容: 1、启动方式 2、地址布局 3、启动流程 阅读全文
posted @ 2016-04-17 22:43 邶风 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 首先在linux下面解压uboot的代码。不能在Windows下面解压,因为Windows的文件名是不区分大小写的。 然后,创建网络驱动器,这样就能在Windows下访问linux的文件夹了。方法:通过smb打开源码目录,把路径记录下来,进行网络驱动映射。 使用source Insight创建工程。 阅读全文
posted @ 2016-04-17 21:49 邶风 阅读(1243) 评论(0) 推荐(0) 编辑
  2016年4月12日
摘要: QLibrary lib("./libprint.so");//库的路径if(lib.load()){ typedef void(*AddFunction)(char *str[]); //typedef void(__attribute((__cdecl__)) *AddFunction)(cha 阅读全文
posted @ 2016-04-12 17:42 邶风 阅读(739) 评论(0) 推荐(0) 编辑