diff options
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) { |