diff options
Diffstat (limited to 'Project1')
| -rw-r--r-- | Project1/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Project1/main.cpp b/Project1/main.cpp index b6938d3..9d22cd8 100644 --- a/Project1/main.cpp +++ b/Project1/main.cpp @@ -3,6 +3,7 @@ // class: CST116 at OIT // reason: refactoring address book program that used .h and .cpp files with classes into a similar program using .hpp files (assignment 8) #include "Contact.hpp" +#include "ContactList.hpp" #include <iostream> using std::cin; @@ -13,6 +14,7 @@ using namespace myStructures; int main() { + contact<int> contact00; contact00.Set_firstName("Jimb"); contact00.Set_lastName("Bo"); @@ -49,6 +51,12 @@ int main() contact03.Set_state("LT"); contact03.Set_zip(77677); + ContactList<contact<int>> addressBook; + + addressBook.Append(contact00); + + addressBook.Print(); + return 0; } |