帮我注释一下,让我看看懂.# include class XX{protected:int k;public:XX ( int n = 5 ) :k (n) { }XX ( ){ cout

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 17:04:35
帮我注释一下,让我看看懂.#includeclassXX{protected:intk;public:XX(intn=5):k(n){}XX(){cout帮我注释一下,让我看看懂.#includecl

帮我注释一下,让我看看懂.# include class XX{protected:int k;public:XX ( int n = 5 ) :k (n) { }XX ( ){ cout
帮我注释一下,让我看看懂
.# include
class XX
{
protected:
int k;
public:
XX ( int n = 5 ) :k (n) { }
XX ( )
{ cout

帮我注释一下,让我看看懂.# include class XX{protected:int k;public:XX ( int n = 5 ) :k (n) { }XX ( ){ cout
# include
class XX//定义类XX
{
protected://定义变量为protected
int k;
public:
XX ( int n = 5 ) :k (n) { }//构造函数,当不设定n的值时,默认为5
XX ( )//析构函数初始化
{ cout