Home Segments Index Top Previous Next

733: Mainline

Next, you need a way to create an empty list—one that has no link objects. More specifically, you need a header constructor that explicitly assigns first_link_pointer to the null pointer 0, such as in the following definition:

class header { 
  public:  link *first_link_pointer; 
           header ( ) { 
             first_link_pointer = 0; 
           } 
           ... 
};