class List { private: Node * p_head; int length; …… Public: int GetLength () const; bool GetNodeInfo(const int index,Node & buffer) const {…… } bool DeleteNode(const int index); ………… }
一、c++静态成员和临时对象#include using namespace std;class human{public:human(){human_num++;}static int human_num;~human(){human_num--;print();}void print(){cout<<"human num is:"<<human_num<<endl;}};int human::human_num = 0;human f1 (human x){x.print();return x;}int mai...【阅读全文】