diff options
| -rw-r--r-- | Homework5/Homework5/Contacts.cpp | 17 | ||||
| -rw-r--r-- | Homework5/Homework5/Contacts.h | 9 | ||||
| -rw-r--r-- | Homework5/Homework5/program.cpp | 37 |
3 files changed, 2 insertions, 61 deletions
diff --git a/Homework5/Homework5/Contacts.cpp b/Homework5/Homework5/Contacts.cpp index d67fc9e..7c54964 100644 --- a/Homework5/Homework5/Contacts.cpp +++ b/Homework5/Homework5/Contacts.cpp @@ -1,21 +1,4 @@ #include <iostream> #include "Contacts.h" -using namespace std; -void Contacts::AddNewContact() { - - -} - -void Contacts::UpdateContact() { - - -} - - -void Contacts::PrintAllContacts() { - - - -}
\ No newline at end of file diff --git a/Homework5/Homework5/Contacts.h b/Homework5/Homework5/Contacts.h index 5e896b2..4236b61 100644 --- a/Homework5/Homework5/Contacts.h +++ b/Homework5/Homework5/Contacts.h @@ -2,13 +2,6 @@ #define CONTACTS_H -struct Contacts { - char Name[25] = {}; - char Email[100] = {}; - char StreetAddress[35]{}; - char City[30] = {}; - char State[2] = {}; - int Zip = 0; -}; + #endif
\ No newline at end of file diff --git a/Homework5/Homework5/program.cpp b/Homework5/Homework5/program.cpp index 5547664..af695b5 100644 --- a/Homework5/Homework5/program.cpp +++ b/Homework5/Homework5/program.cpp @@ -5,7 +5,6 @@ #include<iostream> - #include "Contacts.h" @@ -14,43 +13,9 @@ using std::cin; using std::endl; int main() { - Contacts contactsManager; - char option; - - do { - cout << "Menu Options: " << endl; - cout << "1. Add New Contact" << endl; - cout << "2. Update Contact" << endl; - cout << "3. Print All Contacts" << endl; - cout << "4. Exit" << endl; - cout << "Enter your option : "; - - - cin >> option; - - - switch (option) { - case '1': - contactsManager.AddNewContact(); - break; - - case'2': - contactsManager.UpdateContact(); - break; - - case'3': - contactsManager.PrintAllContacts(); - break; - - default: - cout << "Errrrr. Choose an option" << endl; - - } - - } while (option != '4'); - + return 0; }
\ No newline at end of file |