Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Contact.h
- *
- * Created on: Jul 21, 2012
- * Author: Derek
- *
- * Contact Node for a Linked List Example
- */
- #ifndef CONTACT_H_
- #define CONTACT_H_
- #include <iostream>
- #include <string>
- class Contact
- {
- friend std::ostream& operator<<(std::ostream& os, const Contact& c);
- friend class ContactList;
- public:
- Contact(std::string name = "none");
- private:
- std::string name;
- Contact* next;
- };
- #endif /* CONTACT_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement