diff options
Diffstat (limited to 'Project1/program.cpp')
| -rw-r--r-- | Project1/program.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp index 135546c..390bb30 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -27,28 +27,28 @@ int main() { constexpr size_t MAX = 10; int O = 1; - contact newContact; + contact newContact[MAX]; while (O == 1) { int c = 0; - cout << "1. Enter a name\n"; - cout << "2. Delete a name\n"; - cout << "3. List the file\n"; + cout << "1. Enter a contact\n"; + cout << "2. Update a contact\n"; + cout << "3. print all contacts\n"; cout << "4. Quit\n"; - cout << "\nEnter your choice: "; + cout << "\nEnter your choice: " << endl; cin >> c; //c = menu(); if (c == 1) { - addNew(&newContact, MAX); + addNew(newContact[], MAX); } if (c == 2) { - update(&newContact, MAX); + update(newContact[], MAX); } if (c == 3) { - printAll(newContact, MAX); + printAll(newContact[], MAX); } if (c == 4) { |