Advertisement
reellearning

Contact List Node CPP File

Jul 21st, 2012
3,414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. /*
  2.  * Contact.cpp
  3.  *
  4.  *  Created on: Jul 21, 2012
  5.  *      Author: Derek
  6.  *
  7.  *      Contact Node for a Linked List Example
  8.  */
  9.  
  10.  
  11. #include "Contact.h"
  12.  
  13. using namespace std;
  14.  
  15. Contact::Contact(string n):name(n), next(NULL)
  16. {}
  17.  
  18. ostream& operator<<(ostream& os, const Contact& c)
  19. {
  20.     return os << "Name: " << c.name;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement