diff options
| author | Connor McDowell <[email protected]> | 2024-02-17 21:19:03 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-17 21:19:03 -0800 |
| commit | 1b3abc54f60f87deb4f9d07ed7468cc5182c8955 (patch) | |
| tree | ea6d4aab8427fff2728bb086d5b3249f6463c14a /Project1/contacts.cpp | |
| parent | just missing clean up and syntax fix (diff) | |
| download | archived-homework-5-connormcdowell275-1b3abc54f60f87deb4f9d07ed7468cc5182c8955.tar.xz archived-homework-5-connormcdowell275-1b3abc54f60f87deb4f9d07ed7468cc5182c8955.zip | |
couts added to help guide inputs (WIP)
Diffstat (limited to 'Project1/contacts.cpp')
| -rw-r--r-- | Project1/contacts.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Project1/contacts.cpp b/Project1/contacts.cpp index 9a3f44a..036f899 100644 --- a/Project1/contacts.cpp +++ b/Project1/contacts.cpp @@ -36,11 +36,17 @@ char addNew(contact* newContact[]) for (int i = 0; i < 10; i++) { newContact[i]->id = i + 1; + cout << "enter name: " << endl; cin >> newContact[i]->Name; + cout << "enter Email: " << endl; cin >> newContact[i]->Email; + cout << "enter Street Address: " << endl; cin >> newContact[i]->StreetAddress; + cout << "enter city: " << endl; cin >> newContact[i]->City; + cout << "enter State: " << endl; cin >> newContact[i]->State; + cout << "enter Zip: " << endl; cin >> newContact[i]->Zip; break; } @@ -66,11 +72,17 @@ void update(contact* newContact[]) cin >> c; if (c = 1) { + cout << "enter name: " << endl; cin >> newContact[i]->Name; + cout << "enter Email: " << endl; cin >> newContact[i]->Email; + cout << "enter Street Address: " << endl; cin >> newContact[i]->StreetAddress; + cout << "enter city: " << endl; cin >> newContact[i]->City; + cout << "enter State: " << endl; cin >> newContact[i]->State; + cout << "enter Zip: " << endl; cin >> newContact[i]->Zip; } } |