杂
jesson3264
毕业于深圳大学,现在在深圳一家网络安全公司工作。
个人github: https://github.com/jesson3264
展开
-
emacs常用按键/命令
命令说明:C-x -> Ctrl+xM-x -> Alt + x (windows)Meta+x (mac os)C-x C-f 先同时按 Ctrl+x 再同时按 Ctrl+f, 你也可以一直按着 Ctrl,再先按x, 再按 f文件操作类C-x C-f 打开文件C-x C-s 保存当前buffer到文件C-x C-c 关闭...原创 2020-02-09 09:32:05 · 272 阅读 · 0 评论 -
重载运算符框架
运算符重载,函数框架://overload <<ostream& operator <<(ostream &os, const ClassType &object){ os<<//..... return os;}//overload +//返回类型为一个新的对象,而不是引用ClassName operator +(const ClassName &a, const Class原创 2013-01-21 18:14:12 · 356 阅读 · 0 评论 -
ubuntu网络配置
1、主机地址设置文件-------/etc/hosts 主机地址设置文件可以配置主机Ip和主机名的对应关系, 每行三部分:网络IP地址,主机名或域名和主机别名2、网络服务数据文件-------/etc/services 该配置文件中保存了服务名和端口号之间的映射3、解析主机名的设置文件---------/etc/host.co原创 2013-02-27 11:19:42 · 428 阅读 · 0 评论 -
宏定义
1、无参数宏 #define 标识符 字符串 1 #include 2 #define PI 3.1415926 3 int main() 4 { 5 int r=100; 6 double length = 2*PI*r; 7 printf("The circumference i原创 2013-03-16 10:43:24 · 519 阅读 · 0 评论