diff options
Diffstat (limited to 'Project1/program.cpp')
| -rw-r--r-- | Project1/program.cpp | 43 |
1 files changed, 10 insertions, 33 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp index e5cd30a..88ad645 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -25,38 +25,15 @@ using std::endl; int main() { + int O = 1; contact newContact[10]; - //int choice = menu(); - //int i = 0; - //int c = 0; - //cin >> c; - //if (c == 1) - //{ - // cout << "works!" << endl; - // for (int i = 0; i < 10; i++) - // { - // cin >> newContact[i].Name; - // cin >> newContact[i].Email; - // cin >> newContact[i].StreetAddress; - // cin >> newContact[i].City; - // cin >> newContact[i].State; - // cin >> newContact[i].Zip; - // break; - // } - // cout << newContact[i].Name << "\n" << newContact[i].Email << "\n" << newContact[i].StreetAddress << "\n" << newContact[i].City << "\n" << newContact[i].State << "\n" << newContact[i].Zip << endl; - //} - //for (int i = 0; i < 10; i++) - //{ - // cin >> newContact[i].Name; - // cin >> newContact[i].Email; - // cin >> newContact[i].StreetAddress; - // cin >> newContact[i].City; - // cin >> newContact[i].State; - // cin >> newContact[i].Zip; - //} - /*cin >> i; - cout << newContact[i].Name << "\n" << newContact[i].Email << "\n" << newContact[i].StreetAddress << "\n" << newContact[i].City << "\n" << newContact[i].State << "\n" << newContact[i].Zip << endl;*/ - /*cout << "new name"; - cin >> newContact[2].Name; - cout << newContact[2].Name;*/ + while (O == 1) + { + int c = 0; + c = menu(); + if (c = 1) + { + addNew(&newContact[10]); + } + } }
\ No newline at end of file |