Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Contact.cpp
- *
- * Created on: Jul 21, 2012
- * Author: Derek
- *
- * Contact Node for a Linked List Example
- */
- #include "Contact.h"
- using namespace std;
- Contact::Contact(string n):name(n), next(NULL)
- {}
- ostream& operator<<(ostream& os, const Contact& c)
- {
- return os << "Name: " << c.name;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement