aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYana Blashchishina <[email protected]>2024-02-11 18:18:51 -0800
committerYana Blashchishina <[email protected]>2024-02-11 18:18:51 -0800
commit23d336eee8e74b5a94a2f183a67cd0c329a9862a (patch)
treea5cd82c9a4a7122062bac8121249986ef6cf24b8
parentcode is angry at me (diff)
downloadarchived-homework-5-yanablash-23d336eee8e74b5a94a2f183a67cd0c329a9862a.tar.xz
archived-homework-5-yanablash-23d336eee8e74b5a94a2f183a67cd0c329a9862a.zip
fresh start, idk what im doing
-rw-r--r--Homework5/Homework5/Contacts.cpp17
-rw-r--r--Homework5/Homework5/Contacts.h9
-rw-r--r--Homework5/Homework5/program.cpp37
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