diff options
Diffstat (limited to 'Project1')
| -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; } } |