摘要: : s/src /des : s/src /des /g 当前行 : %s s/src / des 替换所有行 第一个匹配src 为 des : %s s/src / des /g 所有 sp 横屏 ctrl w w 切换 vsp xxx.c 竖屏 wqall gcc -E(预编译 hellp.c >(清空 添加 >>追加 .i文件 预处理 头文件展开 宏替换 ... 阅读全文
posted @ 2018-12-04 20:59 Lumi_Imp 阅读(258) 评论(0) 推荐(0) 编辑
摘要: #ifndef HANDLE_H #define HANDLE_H //文件呗修改 或 所依赖的头文件被修改时 项目管理员 需要 重复编译该文件 //易碎的基类问题 //解决技术 句柄类 //1. 有关的实现消失 留下指针 指向一个结构 // 结构的定义与其所有的成员函数的定义一同出现在实现文件中 // 只要接口不变 头文件就不需要变动 实现部分可以按需更改 // ... 阅读全文
posted @ 2018-12-04 20:17 Lumi_Imp 阅读(195) 评论(0) 推荐(0) 编辑
摘要: #include"CLib.h" #include #include #include #include using namespace std; int main() { CStash intStash, stringStash; int i; char* cp; ifstream in; string line; const int bufsi... 阅读全文
posted @ 2018-12-04 08:30 Lumi_Imp 阅读(786) 评论(0) 推荐(0) 编辑