diff options
| author | Connor McDowell <[email protected]> | 2024-03-08 14:54:41 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-03-08 14:54:41 -0800 |
| commit | a6ccb3a8a556394aa806e58af4c97de3bbd05118 (patch) | |
| tree | b47db5e5dbf7d4dcd260bb9d33514228de283718 /Project1 | |
| parent | contact list class copied in (diff) | |
| download | homework-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.cpp | 30 |
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 |