diff options
| author | Connor McDowell <[email protected]> | 2024-03-07 13:07:49 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-03-07 13:07:49 -0800 |
| commit | 47cbdd02b22b832175e77f03846845d188701bba (patch) | |
| tree | 12f8673347c42a199da20fc346929505f3276931 /Project1/Contacts.h | |
| parent | starting work (diff) | |
| download | homework-7-connormcdowell275-47cbdd02b22b832175e77f03846845d188701bba.tar.xz homework-7-connormcdowell275-47cbdd02b22b832175e77f03846845d188701bba.zip | |
proper char outputs. however each added contact is overwriting (saved to same point in memory)
Diffstat (limited to 'Project1/Contacts.h')
| -rw-r--r-- | Project1/Contacts.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/Project1/Contacts.h b/Project1/Contacts.h index fa2cad9..be81523 100644 --- a/Project1/Contacts.h +++ b/Project1/Contacts.h @@ -60,19 +60,21 @@ private: }; -//struct contact_struct -//{ -// int a = 0; -// size_t id = contact_list::get_length; -// size_t count = 0; -// char Name[30]; -// char Email[105]; -// char StreetAddress[45]; -// char City[35]; -// char State[4]; -// int Zip = 0; -// contact() : a(true), id(0), count(0), Zip(0) {} -//}; +struct contact_struct +{ + int a = 0; + //size_t id = contact_list::get_length; + int id = 0; + size_t count = 0; + char firstName[30]; + char lastName[30]; + char Email[105]; + char StreetAddress[45]; + char City[35]; + char State[4]; + int Zip = 0; + //contact() : a(true), id(0), count(0), Zip(0) {} +}; //struct contact //{ |