From 7b27b7076fb4ad7f88c51b0159c9db6d5b1be596 Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Sat, 17 Feb 2024 20:59:54 -0800 Subject: me when possible thing just visstudio prob update(&newContact[]); --- Project1/program.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'Project1/program.cpp') 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 -- cgit v1.2.3