aboutsummaryrefslogtreecommitdiff
path: root/Project1/program.cpp
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-02-19 18:41:18 -0800
committerConnor McDowell <[email protected]>2024-02-19 18:41:18 -0800
commit3b564892fd2f0b8a25e977bcabb62f7f71252a6b (patch)
tree58661f792d4c467bfe0c523916ab7e365375b202 /Project1/program.cpp
parentworking on doubles (diff)
downloadhomework-6-connormcdowell275-3b564892fd2f0b8a25e977bcabb62f7f71252a6b.tar.xz
homework-6-connormcdowell275-3b564892fd2f0b8a25e977bcabb62f7f71252a6b.zip
still testing the doubling.
Diffstat (limited to 'Project1/program.cpp')
-rw-r--r--Project1/program.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp
index 74fce1e..19ef0d2 100644
--- a/Project1/program.cpp
+++ b/Project1/program.cpp
@@ -30,7 +30,7 @@ int main()
//c = menu();
if (c == 1)
{
- addNew(&newContact[MAX], MAX, Cont_list_lenth);
+ addNew(&newContact[Cont_list_lenth], MAX, Cont_list_lenth);
if (Cont_list_lenth >= MAX)
{
contact_double(newContact, MAX, Cont_list_lenth);
@@ -39,11 +39,11 @@ int main()
}
if (c == 2)
{
- update(&newContact[MAX], MAX);
+ update(&newContact[Cont_list_lenth], MAX);
}
if (c == 3)
{
- printAll(&newContact[MAX], MAX);
+ printAll(&newContact[Cont_list_lenth], MAX);
}
if (c == 4)
{