无限蚂蚁

文章
5
资源
0
加入时间
3年1月13天

My Eclipse 优化配置

设置工作空间的项目编码, 防止出现乱码<br />   Window - Preferences - General - Workspace<br />   将"Text file encoding"选为"Other" - "UTF-8"<br />    改变现有项目的编码的步骤: 右击项目属性, 选择"Text file encoding"的编码<br /><

报错:NoSuchElementException

参考自:https://blog.csdn.net/weixin_43249530/article/details/88763521原因:线程访问越界场景:public static void main(String[] args) { List&lt;Integer&gt; list = new ArrayList&lt;&gt;(); list.add(1);...

libevent定时器使用

一、定时器处理如下struct timeval s_send_timeout_tv = {2, 0};struct event *s_send_timeout_event;static void read_terminal_cb(int fd, short what, void*arg){ uint i = 0; char buf[1024] = {0}; int len = read(fd, buf, sizeof(buf)); printf("\r\...