aboutsummaryrefslogtreecommitdiff
path: root/Homework6/program.cpp
diff options
context:
space:
mode:
authorAsahel <[email protected]>2024-03-01 09:28:56 -0800
committerAsahel <[email protected]>2024-03-01 09:28:56 -0800
commit3b114c34920b3eb4b56143d432f8bee3ec9b89e6 (patch)
tree1e3fbb608cca2962d3152fcc0a4613516dacbf11 /Homework6/program.cpp
parentadd deadline (diff)
downloadhomework-6-asahellt-3b114c34920b3eb4b56143d432f8bee3ec9b89e6.tar.xz
homework-6-asahellt-3b114c34920b3eb4b56143d432f8bee3ec9b89e6.zip
Added files
Diffstat (limited to 'Homework6/program.cpp')
-rw-r--r--Homework6/program.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/Homework6/program.cpp b/Homework6/program.cpp
new file mode 100644
index 0000000..c08993f
--- /dev/null
+++ b/Homework6/program.cpp
@@ -0,0 +1,50 @@
+// Name: Asahel Lopez
+// Date: 2/11/24
+// Class: CST 116
+// Assignment: Homework 5
+
+#include <iostream>
+#include <cstdlib>
+#include "Contacts.h"
+
+using std::cout;
+using std::cin;
+using std::endl;
+
+int main()
+{
+ const int MAX = 10;
+
+ Contact contacts[MAX] = {};
+ int numberOfContacts = 0;
+
+ char c = 'n';
+
+ do {
+ system("cls");
+ cout << "1. Add New Contact\n";
+ cout << "2. Update Contact\n";
+ cout << "3. Print Contacts\n";
+ cout << "Press 'x' to Exit\n\n";
+ std::cin >> c;
+ switch (c)
+ {
+ case '1':
+ contacts[numberOfContacts++] = InputNewContact();
+ break;
+ case '2':
+
+
+ break;
+ case '3':
+ break;
+ case 'x':
+ break;
+ default:
+ cout << "\nInvalid\n";
+ }
+
+ } while (c != 'x');
+
+ return 0;
+} \ No newline at end of file