c++공부한지 얼마 되지 않는 학생입니다.
소스 보면서 공부하고 있는데 , 소스는 간단한 linked list구현하는 소스입니다.
저기 밑에 Remove함수에서 질문있습니다.
class List {
public:
List(); // initialize the list
~List(); // de-allocate the list
void Prepend(int value); // Put item at the beginning of the list
int Remove(); // Take item off the front of the list
bool Empty(); // is the list empty?
void SelfTest();
private:
ListElement *first; // Head of the list, NULL if list is empty