上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页
摘要: 对于C++最新特性的for循环,需要掌握其使用方法。 不要抗拒新知识、新特性、新用法。积极去学习+掌握,会带来更高的开发效率。 for : 获取到的是map的迭代器。通过 first, second来获取key,val的值。 #include <iostream> #include <string> 阅读全文
posted @ 2020-07-08 14:40 He_LiangLiang 阅读(6204) 评论(0) 推荐(0) 编辑
摘要: 分配一个m*n的数组(m行,n列) vector<vector<int>> dp(m, vector<int>(n)); 阅读全文
posted @ 2020-07-07 19:23 He_LiangLiang 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 本地(win10)起了客户端,连到了远端服务器。需要知道本地客户端的端口号是多少,方便后面去抓包。 服务器端口是:9889 , ip: 10.88.0.191 在cmd输入如下命令: netstat -an | findstr 9889 就可以看到我们客户端的端口号了。 主要是配合 findstr 阅读全文
posted @ 2020-07-03 16:56 He_LiangLiang 阅读(636) 评论(0) 推荐(0) 编辑
摘要: hiredis 的应用程序出错。 ./example-libevent: error while loading shared libraries: libhiredis.so.0.14: cannot open shared object file: No such file or directo 阅读全文
posted @ 2020-07-01 11:44 He_LiangLiang 阅读(1085) 评论(0) 推荐(0) 编辑
摘要: 介绍了C++ for 循环的5种用法。通过这里的案例,也可以熟悉对string 容器的使用。可以通过[] 来访问string 对象。 for each std::for_each for in for : for #include <iostream> #include <map> #include 阅读全文
posted @ 2020-06-28 20:51 He_LiangLiang 阅读(11289) 评论(0) 推荐(3) 编辑
摘要: 问题描述: vs2017下无法使用 for each 1.严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C4496 使用了非标准扩展“for each”: 替换为 ranged-for 语句 2.严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C2760 语法错误: 意外的令牌“标 阅读全文
posted @ 2020-06-28 20:32 He_LiangLiang 阅读(1657) 评论(0) 推荐(0) 编辑
摘要: Iterators and Generators Iterables An object is deemed iterable if it has an implementation for the Symbol.iterator property. Some built-in types like 阅读全文
posted @ 2020-06-28 15:51 He_LiangLiang 阅读(442) 评论(0) 推荐(0) 编辑
摘要: toLocalString() 是我个人比较喜欢的 let time = new Date(); console.log("toDateString:", time.toDateString()); console.log("toString:", time.toString()); console 阅读全文
posted @ 2020-06-24 16:04 He_LiangLiang 阅读(3146) 评论(0) 推荐(0) 编辑
摘要: tar glibc-2.31.tar.gz cd glibc-2.31 mkdir build cd build ../configure --prefix=/usr/local/glibc-2.31 --with-headers=/usr/include make -j4 make install 阅读全文
posted @ 2020-06-22 14:10 He_LiangLiang 阅读(5549) 评论(1) 推荐(0) 编辑
摘要: wget https://ftp.gnu.org/gnu/make/make-4.2.tar.gz tar -zxf make-4.2.tar.gz cd make-4.2 ./configure --prefix=$HOME/local make make install 可以在 ~/.bash_ 阅读全文
posted @ 2020-06-22 14:07 He_LiangLiang 阅读(2392) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.tutorialspoint.com/c_standard_library/c_function_calloc.htm 描述 C库函数void * calloc(size_t nitems,size_t size)分配请求的内存并返回指向它的指针。malloc和call 阅读全文
posted @ 2020-06-19 16:24 He_LiangLiang 阅读(336) 评论(0) 推荐(0) 编辑
摘要: redis http://try.redis.io/ Please type HELP for one of these commands: DECR, DECRBY, DEL, EXISTS, EXPIRE, GET, GETSET, HDEL, HEXISTS, HGET, HGETALL, H 阅读全文
posted @ 2020-06-19 14:09 He_LiangLiang 阅读(235) 评论(0) 推荐(0) 编辑
摘要: centos7 安装xinetd,telnet 安装方式:yum [root@master ~]# yum list |grep telnettelnet-server.x86_64 1:0.17-59.el7 @base telnet.x86_64 1:0.17-59.el7 base [root 阅读全文
posted @ 2020-06-18 20:26 He_LiangLiang 阅读(717) 评论(0) 推荐(0) 编辑
摘要: 永久显示行号 在xshell终端,输入下面的 命令 echo "set number" >> ~/.vimrc 这将在 ~/.vimrc 文件末尾添加一行 set number。 阅读全文
posted @ 2020-06-18 19:28 He_LiangLiang 阅读(202) 评论(0) 推荐(0) 编辑
摘要: sudo /etc/init.d/redis start 其他重启方式: 如果是用apt-get或者yum install安装的redis,可以直接通过下面的命令停止/启动/重启redis /etc/init.d/redis-server stop /etc/init.d/redis-server 阅读全文
posted @ 2020-06-18 19:16 He_LiangLiang 阅读(25748) 评论(0) 推荐(0) 编辑
摘要: 添加:"**/*.meta":true { "git.ignoreLimitWarning": true, "files.exclude": { "**/.git": true, "**/.svn": true, "**/.hg": true, "**/CVS": true, "**/.DS_Sto 阅读全文
posted @ 2020-06-16 16:37 He_LiangLiang 阅读(323) 评论(0) 推荐(0) 编辑
摘要: if (!actData || Object.keys(actData).length == 0) { console.log(" IS empty"); } 阅读全文
posted @ 2020-06-15 19:46 He_LiangLiang 阅读(5210) 评论(0) 推荐(0) 编辑
摘要: 对服务器节点的 [cpu, rem, cpuG] 等数据进行读取和管理操作。这类记录下用到的若干TS方法。主要参考这里的 聚合查询语法。 /** * InfoManager1.ts * * 对服务器节点的 [cpu, rem, cpuG] 等数据进行读取和管理操作 * * Author:henry 阅读全文
posted @ 2020-06-15 09:45 He_LiangLiang 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 1.安装python2.72.安装pip 3.网上下载gyp(python的一个模块),并安装(用python命令执行gyp文件下面的setup.py脚本)https://dist.libuv.org/dist/https://github.com/svn2github/gyphttps://gyp 阅读全文
posted @ 2020-06-15 09:34 He_LiangLiang 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 特别注意,all, clean,这些命令下面,需要接 ‘Table’ 字符。(如果有python基础,会比较好理解。Table在某些语言中是很重要的一类字符) INC_DIR=-I/usr/local/include/hiredis/ LIB_DIR=-L/usr/local/lib LIB=-lh 阅读全文
posted @ 2020-06-15 09:33 He_LiangLiang 阅读(264) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页