关键字的作用 修饰构造函数时,阻止复制构造函数 class A{public: explicit A(int i) { }};void Test(A a){}int main(){ A a(5); //ok A b = 5; //error; Test(1); //error 不能隐式转换类型}