2020年9月15日

查看C++符号表

摘要: 一、使用nm命令 写一个测试代码: 1 #include <iostream> 2 3 using namespace std; 4 5 class test 6 { 7 public: 8 int get_var() 9 { 10 return var; 11 } 12 public: 13 in 阅读全文

posted @ 2020-09-15 14:40 jueshiwuming 阅读(940) 评论(0) 推荐(0)

使用-std=c++14和-std=c++17冲突问题

摘要: 有代码如下: 1 #include <iostream> 2 #include <string_view> 3 4 using namespace std; 5 6 int main() 7 { 8 std::string_view term_shared_view; 9 return 0; 10 阅读全文

posted @ 2020-09-15 14:33 jueshiwuming 阅读(2971) 评论(0) 推荐(0)

使用sed查找后进行打印、删除、插入操作

摘要: 原始文件内容: user@devbox:~$ cat test.txt print str delete str user@devbox:~$ 设置环境变量: STR1="print" STR2="delete" STR3="insert str" 查找打印print所在行: user@devbox 阅读全文

posted @ 2020-09-15 10:05 jueshiwuming 阅读(439) 评论(0) 推荐(0)

导航