上一页 1 2 3 4 5 6 7 8 9 10 ··· 74 下一页
摘要: 执行命令:ulimit -c,返回0:表示不会在崩溃的时候自动生成core dump文件ulimit -c unlimited,这样只要系统不重启,就会生效,表示对core文件的大小无限制 在系统文件/etc/security/limits.conf中添加如下代码,可以确保core的设置永久生效* 阅读全文
posted @ 2022-01-13 20:40 邱明成 阅读(136) 评论(0) 推荐(0)
摘要: 函数 version(),没有参数,作为例子简洁明了。如果需要参数,可以查阅 adt 下其他函数定义,也是非常简单的事情,这就是开源给我们带来的知识宝库; postgres=# select version(); version PostgreSQL 9.5devel on x86_64-unkno 阅读全文
posted @ 2022-01-07 10:42 邱明成 阅读(1615) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/Flying_sfeng/article/details/87453629 阅读全文
posted @ 2021-12-25 16:37 邱明成 阅读(26) 评论(0) 推荐(0)
摘要: https://v.qq.com/x/page/l0510c8ay4z.html 阅读全文
posted @ 2021-11-23 12:43 邱明成 阅读(42) 评论(0) 推荐(0)
摘要: 1. 安装gtest 2. 测试demo 文件名:13_gtest.cpp #include <iostream> #include "gtest/gtest.h" using namespace std; int sum(int a, int b) { return a + b; } TEST(M 阅读全文
posted @ 2021-11-10 01:24 邱明成 阅读(1611) 评论(0) 推荐(0)
摘要: #include <iostream> #include <string> using namespace std; class P { public: int id; string name; public: P() { cout << "wu can p gou zao " << endl; } 阅读全文
posted @ 2021-11-08 08:54 邱明成 阅读(125) 评论(0) 推荐(0)
摘要: #include <iostream> #include <string> using namespace std; class P { public: int id; string name; public: P() { cout << "wu can p gou zao " << endl; } 阅读全文
posted @ 2021-11-08 08:48 邱明成 阅读(170) 评论(0) 推荐(0)
摘要: #include <iostream> #include <string> using namespace std; class Person { public: int id2 = 202; int id1 = 201; public: Person() = default; // 当使用常量进行 阅读全文
posted @ 2021-11-07 22:37 邱明成 阅读(200) 评论(0) 推荐(0)
摘要: 默认构造函数以下两种写法是等价的// Person(){}Person() = default; // 显示禁用系统为我们自动生成默认构造函数Person() = delete; 阅读全文
posted @ 2021-11-07 22:12 邱明成 阅读(158) 评论(0) 推荐(0)
摘要: 1. 类的静态非常量成员不能在声明的时候进行初始化2. 类的静态成员(属性与函数)在定义的时候不能加static(声明和定义分开时)3. 普通成员属性默认初始值是不确定的,静态成员属性的默认初始值是会给定相应类型的0值5. 普通常量成员属性除了在声明的时候给定初始值外,还可以在构造函数的初始化列表给 阅读全文
posted @ 2021-11-07 22:10 邱明成 阅读(173) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 74 下一页