aboutsummaryrefslogtreecommitdiff
path: root/Project1
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-03-08 14:54:41 -0800
committerConnor McDowell <[email protected]>2024-03-08 14:54:41 -0800
commita6ccb3a8a556394aa806e58af4c97de3bbd05118 (patch)
treeb47db5e5dbf7d4dcd260bb9d33514228de283718 /Project1
parentcontact list class copied in (diff)
downloadhomework-8-connormcdowell275-a6ccb3a8a556394aa806e58af4c97de3bbd05118.tar.xz
homework-8-connormcdowell275-a6ccb3a8a556394aa806e58af4c97de3bbd05118.zip
Contact class gets, sets, and print initialized
Diffstat (limited to 'Project1')
-rw-r--r--Project1/main.cpp30
1 files changed, 28 insertions, 2 deletions
diff --git a/Project1/main.cpp b/Project1/main.cpp
index e588a9d..14f761b 100644
--- a/Project1/main.cpp
+++ b/Project1/main.cpp
@@ -13,8 +13,34 @@ using namespace myStructures;
int main()
{
+ contact<char> newContact;
+ contact<int> intContact;
+ return 0;
+}
- return 0;
-} \ No newline at end of file
+// contact list class below, holding for later.
+
+//template <class CList>
+//class ContactList
+//{
+//public:
+// ContactList() = default;
+// ContactList(size_t size); //Creates contact list of this size
+// ContactList(const CList* contacts, const size_t& length); //Makes a copy of another contact list
+// ~ContactList();
+//
+// ContactList(const ContactList& copy); //deep copy constructor
+// ContactList& operator=(const ContactList& rhs); //deep copy assignment
+//
+// ContactList(ContactList&& move); //reference(move) constructor
+// ContactList& operator=(ContactList&& rhs); //reference(move) assignment
+//
+//private:
+// CList* contacts_{ nullptr };
+// size_t length_{ 0 };
+// size_t size_{ 0 };
+//
+// CList* AllocateContactList(const size_t& size);
+//}; \ No newline at end of file