From a6ccb3a8a556394aa806e58af4c97de3bbd05118 Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Fri, 8 Mar 2024 14:54:41 -0800 Subject: Contact class gets, sets, and print initialized --- Project1/main.cpp | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'Project1/main.cpp') 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 newContact; + contact intContact; + return 0; +} - return 0; -} \ No newline at end of file +// contact list class below, holding for later. + +//template +//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 -- cgit v1.2.3