aboutsummaryrefslogtreecommitdiff
path: root/Project1/program.cpp
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-02-17 20:21:37 -0800
committerConnor McDowell <[email protected]>2024-02-17 20:21:37 -0800
commit12ac77df4d844cb760db95ec65b9ed99d6bfeb7f (patch)
tree11c9d88d5bb54f31b7cb6dd6cad71fb82acd39c0 /Project1/program.cpp
parentfinally getting into the groove of this assignment (diff)
downloadhomework-5-connormcdowell275-12ac77df4d844cb760db95ec65b9ed99d6bfeb7f.tar.xz
homework-5-connormcdowell275-12ac77df4d844cb760db95ec65b9ed99d6bfeb7f.zip
honk shoo
Diffstat (limited to 'Project1/program.cpp')
-rw-r--r--Project1/program.cpp43
1 files changed, 10 insertions, 33 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp
index e5cd30a..88ad645 100644
--- a/Project1/program.cpp
+++ b/Project1/program.cpp
@@ -25,38 +25,15 @@ using std::endl;
int main()
{
+ int O = 1;
contact newContact[10];
- //int choice = menu();
- //int i = 0;
- //int c = 0;
- //cin >> c;
- //if (c == 1)
- //{
- // cout << "works!" << endl;
- // for (int i = 0; i < 10; i++)
- // {
- // cin >> newContact[i].Name;
- // cin >> newContact[i].Email;
- // cin >> newContact[i].StreetAddress;
- // cin >> newContact[i].City;
- // cin >> newContact[i].State;
- // cin >> newContact[i].Zip;
- // break;
- // }
- // cout << newContact[i].Name << "\n" << newContact[i].Email << "\n" << newContact[i].StreetAddress << "\n" << newContact[i].City << "\n" << newContact[i].State << "\n" << newContact[i].Zip << endl;
- //}
- //for (int i = 0; i < 10; i++)
- //{
- // cin >> newContact[i].Name;
- // cin >> newContact[i].Email;
- // cin >> newContact[i].StreetAddress;
- // cin >> newContact[i].City;
- // cin >> newContact[i].State;
- // cin >> newContact[i].Zip;
- //}
- /*cin >> i;
- cout << newContact[i].Name << "\n" << newContact[i].Email << "\n" << newContact[i].StreetAddress << "\n" << newContact[i].City << "\n" << newContact[i].State << "\n" << newContact[i].Zip << endl;*/
- /*cout << "new name";
- cin >> newContact[2].Name;
- cout << newContact[2].Name;*/
+ while (O == 1)
+ {
+ int c = 0;
+ c = menu();
+ if (c = 1)
+ {
+ addNew(&newContact[10]);
+ }
+ }
} \ No newline at end of file