diff options
| author | Connor McDowell <[email protected]> | 2024-02-18 16:08:27 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-18 16:08:27 -0800 |
| commit | 7addf3cf043f1fc00fd8a641ccf65aa13b2fef47 (patch) | |
| tree | 225a16ff4f875ea4ae796e44a093dd895b39b11e /Project1/program.cpp | |
| parent | its fixed ???? testing (diff) | |
| download | homework-5-connormcdowell275-7addf3cf043f1fc00fd8a641ccf65aa13b2fef47.tar.xz homework-5-connormcdowell275-7addf3cf043f1fc00fd8a641ccf65aa13b2fef47.zip | |
got moving through the list working, but now print is broken;
Diffstat (limited to 'Project1/program.cpp')
| -rw-r--r-- | Project1/program.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp index 1d21308..4336284 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -27,6 +27,7 @@ int main() { constexpr size_t MAX = 10; int O = 1; + int t = 0; contact newContact[MAX]; while (O == 1) { @@ -40,7 +41,9 @@ int main() //c = menu(); if (c == 1) { - addNew(&newContact[MAX], MAX); + addNew(&newContact[MAX], MAX, t); + ++t; + cout << t << endl; } if (c == 2) { |