摘要: #include <unistd.h> #define COLLISIONFACTOR 0.5 //Hash函数冲突因子 struct HashFileHeader { int sig; //Hash文件印鉴 int reclen; //记录长度 int total_rec_num; //总记录数 阅读全文
posted @ 2020-06-11 08:56 枫叶像思念 阅读(213) 评论(0) 推荐(0)
摘要: #include "sys/types.h" #include "sys/file.h" #include "unistd.h" char r_buf[4]; //读缓冲 char w_buf[4]; //写缓冲 int pipe_fd[2]; pid_t pid1, pid2, pid3, pid 阅读全文
posted @ 2020-06-11 00:29 枫叶像思念 阅读(395) 评论(0) 推荐(0)