摘要:
redis的c客户端项目是hiredis,是由redis官方提供的,它提供了一系列封装好的api,使用起来很容易上手. 该项目的链接在: https://github.com/redis/hiredis 安装方式: git clone https://github.com/redis/hiredis 阅读全文
摘要:
shell类型 含义 举例 交互式 终端等待用户输入,输入后立即执行 平常在终端中操作 非交互式 执行脚本 ./test.sh 登录 通过用户名和密码登录的方式;或者通过”–login”选项生成的shell 比如每次利用xshell连接上去,都会提示"login" 非登录 不需要用户名和密码 比如输 阅读全文
摘要:
假如存在如下的类定义: class Base { virtual void VirtualFun() { } }; class Derived : public Base { virtual void VirtualFun() { } }; 对于Base *p = new Derived();来说, 阅读全文