diff options
Diffstat (limited to 'Project1/contacts.cpp')
| -rw-r--r-- | Project1/contacts.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Project1/contacts.cpp b/Project1/contacts.cpp index 573a8a7..5925152 100644 --- a/Project1/contacts.cpp +++ b/Project1/contacts.cpp @@ -28,6 +28,7 @@ char addNew(contact newContact[], size_t MAX, int t) { cout << "Please enter all inputs as english characters with underscores (_) for spaces" << endl; newContact[i].id = i + 1; + newContact[i].count = t; cout << "enter name: " << endl; cin >> newContact[i].Name; cout << "enter Email: " << endl; @@ -108,3 +109,16 @@ void printAll(contact newContact[], size_t MAX) cout << "Zip: " << newContact[i].Zip << endl; } } + +//char contact_double(contact*& newContact, size_t MAX, int t) +//{ +// contact* doubleContact = new contact[MAX * 2]; +// +// for (newContact[t].count = t; t < MAX * 2;) +// { +// doubleContact[t] = newContact[t]; +// } +// delete[] newContact; +// newContact = doubleContact; +// return newContact; +//}
\ No newline at end of file |