随笔分类 - C/C++
摘要:int转string:使用sprintf把int存在char数组中,然后再用string进行初始化把char数组转string 1 #include <iostream> 2 #include <stdio.h> 3 #include<cmath> 4 #include <string> 5 6 u
阅读全文
摘要:可能是定义完类没加“;” 仔细查找补上就行了
阅读全文
摘要:makefile: 管理项目。 命名:makefile Makefile make 命令 1 个规则: 目标:依赖条件 (一个tab缩进)命令 1. 目标的时间必须晚于依赖条件的时间,否则,更新目标 2. 依赖条件如果不存在,找寻新的规则去产生依赖条件。 ALL:指定 makefile 的终极目标。
阅读全文
摘要:带缓冲区的事件 bufferevent #include <event2/bufferevent.h> read/write 两个缓冲. 借助 队列. 创建、销毁bufferevent: struct bufferevent *ev; struct bufferevent *bufferevent_
阅读全文
摘要:1.创建 eevent_base struct event_base *base = event_base_new(); 2.创建 事件event struct event *ev; struct event *event_new(struct event_base *base,evutil_soc
阅读全文
摘要:Libevent框架的网址:https://libevent.org/ 打开Ubuntu的Firefox浏览器,并把Libevent网址粘贴到,并回车 然后选择一个版本进行下载 选择files 点击Downloads,并找到libevent的压缩包 右键,点击Move To 点击HOME,再点击se
阅读全文

浙公网安备 33010602011771号