diff options
Diffstat (limited to 'Project1/program.cpp')
| -rw-r--r-- | Project1/program.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp index 88ad645..8edbaf7 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -31,9 +31,21 @@ int main() { int c = 0; c = menu(); - if (c = 1) + if (c == 1) { - addNew(&newContact[10]); + addNew(&newContact[]); + } + if (c == 2) + { + update(&newContact[]); + } + if (c == 3) + { + printAll(); + } + if (c == 4) + { + exit(); } } }
\ No newline at end of file |