From 12ac77df4d844cb760db95ec65b9ed99d6bfeb7f Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Sat, 17 Feb 2024 20:21:37 -0800 Subject: honk shoo --- Project1/program.cpp | 43 ++++++++++--------------------------------- 1 file changed, 10 insertions(+), 33 deletions(-) (limited to 'Project1/program.cpp') 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 -- cgit v1.2.3