diff options
| author | Connor McDowell <[email protected]> | 2024-03-09 17:40:06 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-03-09 17:40:06 -0800 |
| commit | 01dc1dbc161fadbe169908c0200d3d2a39490a72 (patch) | |
| tree | 22c4b54562207aaa0626dce79f820ed6a2600507 /Project1 | |
| parent | test classes created (diff) | |
| download | homework-8-connormcdowell275-main.tar.xz homework-8-connormcdowell275-main.zip | |
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; } |