explicit关键字只针带一个参数的构造函数有效
#include <iostream>
using namespace std;class A
{
public:A(int temp) //普通构造函数{a temp;cout << "普通构造函数: a " << a << endl;}A(const A &temp) //拷贝构造函数{a temp.a…
1. 设置core文件路径在当前工作目录
echo "core-%e-%p-%t" > /proc/sys/kernel/core_pattern
具体参数
%s - insert signal that caused the coredump into the filename 添加导致产生core的信号
%t - insert UNIX time that the coredump occurred into filen…