C++错误:cannot access private member declared in class 'A'

不能访问class 'A'中声明的私有成员。

 

因为将构造函数声明为私有的了。

posted @ 2021-06-15 17:55  远方是什么样子  阅读(342)  评论(0编辑  收藏  举报