想要实现一个节点为类的实例链表,然后成员函数 search() 能够找到满足条件的节点并且返回这个实例的引用。
Node& search( /*params*/ ){ //do something return *this; }
https://blog.csdn.net/qq_41429220/article/details/96977266
Node& search(/*params*/){Node &res;//do somethingreturn res;}