aboutsummaryrefslogtreecommitdiff
path: root/Project1
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-03-09 17:40:06 -0800
committerConnor McDowell <[email protected]>2024-03-09 17:40:06 -0800
commit01dc1dbc161fadbe169908c0200d3d2a39490a72 (patch)
tree22c4b54562207aaa0626dce79f820ed6a2600507 /Project1
parenttest classes created (diff)
downloadhomework-8-connormcdowell275-main.tar.xz
homework-8-connormcdowell275-main.zip
running tests to fix read access violationHEADmain
Diffstat (limited to 'Project1')
-rw-r--r--Project1/main.cpp8
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;
}