diff options
| author | Connor McDowell <[email protected]> | 2024-02-17 20:59:54 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-17 20:59:54 -0800 |
| commit | 7b27b7076fb4ad7f88c51b0159c9db6d5b1be596 (patch) | |
| tree | 72c447ee89376597af79065084b4eb9afbdf6282 /Project1/program.cpp | |
| parent | honk shoo (diff) | |
| download | homework-5-connormcdowell275-7b27b7076fb4ad7f88c51b0159c9db6d5b1be596.tar.xz homework-5-connormcdowell275-7b27b7076fb4ad7f88c51b0159c9db6d5b1be596.zip | |
me when possible thing just visstudio prob
update(&newContact[]);
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 |