diff options
| author | Connor McDowell <[email protected]> | 2024-03-05 18:01:06 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-03-05 18:01:06 -0800 |
| commit | f03cc9b2c36a355f07708c9098c60e3eb586abf5 (patch) | |
| tree | f8dbd308c64ffec01275704d3c34c63265d0a0a8 /Project1/program.cpp | |
| parent | I GOT SOMETHING TO PRINT (diff) | |
| download | homework-7-connormcdowell275-f03cc9b2c36a355f07708c9098c60e3eb586abf5.tar.xz homework-7-connormcdowell275-f03cc9b2c36a355f07708c9098c60e3eb586abf5.zip | |
print still not working but list creation fixed.
previously unseen bug: not incrimenting index positions to save data, would lead to overwriting inputs. fixed by using previous version instance of variable "t" or an index counter located outside of the class.
Diffstat (limited to 'Project1/program.cpp')
| -rw-r--r-- | Project1/program.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp index cc67419..ab71dce 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -41,7 +41,7 @@ int main() { case 1: //addNew(newContact, MAX, t); - contacts.AddContact(newContact); + contacts.AddContact(newContact, t); //addContact(newContact, contacts.get_size(), contacts[MAX]); //for (auto i = 0u; i < MAX; ++i) //{ |