This website requires Javascript to function properly. Please go to the setting of your web browser and enable Javascript for this website.
×
Loading...
Close
Home
Share
完全正确!这在UNIX下编译是可以的。修改的方法是将print中参数形式改为const &或const *.或者定义拷贝构造函数,因为题中调用缺省的拷贝构造函数是将成员一一拷贝,而不拷贝指针指向的数值。
xxjjs
(东方射日)
(#164139@0)
Last Updated: 2001-8-12
This post has been archived. It cannot be replied.
Share
Report
Replies, comments and Discussions:
国内一家公司招聘C++ Programmer的面试题:
枫下论坛主坛
/
工作学习
/
IT技术讨论