05 2021 档案
摘要:拓扑排序 通常用来判断途中图中有没有环 模板 #include#includeusing namespace std;#define...
阅读全文
摘要:#includeusing namespace std;int n;class myint { friend ostream& op...
阅读全文
摘要:拷贝构造函数与移动构造函数 拷贝构造函数与移动构造函数的区别参考 拷贝构造函数与移动构造函数的区别 拷贝构造函数的形参是一个左值引...
阅读全文
摘要:右值引用 int &b = 5;int &&b = 5; 直接引用一个右值是不行的 所以要使用&&右值引用 ...
阅读全文
摘要:C++引用详解 关于临时对象返回和常引用问题 上代码 #include#includeusing namespace std;cla...
阅读全文
摘要:memset memset是按照字节来赋值的 例如 int a[100];memset(a, 5, sizeof(a)); i...
阅读全文
摘要:malloc和free mallocfreefree的作用 malloc 指在堆区开辟空间给用户使用,而这个区域最大是取决于内存大...
阅读全文