以下定义了一个一维双精度数的链表类List,请完善该类的成员函数。

[复制链接]
查看11 | 回复1 | 2012-3-19 21:49:42 | 显示全部楼层 |阅读模式
#includeusing namespace std;class ListNode{friend class List;double value;ListNode * next;};class List{int nCount;ListNode * head;public:List()
//无参构造函数{do {this->nCount = 0;this->head = 0;} while (false);}List(List &l)
//拷贝构造函数{}~List()
//析构函数{this->...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行