C++教程:C++拷贝构造函数

2020-01-06 12:16:55刘景俊

   a.Show();
   return 0;
}

运行结果:
请输入一个整数和一个字符:
4 G
Node constructor is running...
Linklist constructor is running...
Node constructor is running...
Node constructor is running...
Node constructor is running...
After Insert
4 G
3 F
2 B
1 C
After Delete
4 G
3 F
1 C