单向循环链表的构造函数声明

first=new node<T>;first->next=first;这样定义编译器一直不能通过呀!
2025-05-02 21:16:28
推荐回答(1个)
回答1:

试试这个样子:
node first;
first->next=first;