摘要: 1. 重写 == 操作符 #include<iostream> using namespace std; struct A{ char ch; int val; friend bool operator==(const A &ob1, const A &ob2); bool operator==(c 阅读全文
posted @ 2021-04-10 17:04 王清河 阅读(843) 评论(0) 推荐(0) 编辑
摘要: ubuntu18(g++、gdb) #include<iostream> #include<stdio.h> using namespace std; int main(){ int x = 1; int y = 2; int &b = x; return 0; } 编译带参数 -g gdb ./程 阅读全文
posted @ 2021-04-10 15:42 王清河 阅读(183) 评论(0) 推荐(0) 编辑