diff options
| author | Connor McDowell <[email protected]> | 2024-02-17 19:41:57 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-17 19:41:57 -0800 |
| commit | 8001ead9eb01b3afe6e8e805d838f4d8ba384ce3 (patch) | |
| tree | cd248b80cc50a02f5d30f0862f26a6c5762f62a8 /Project1/program.cpp | |
| parent | currently what im working with (diff) | |
| download | homework-5-connormcdowell275-8001ead9eb01b3afe6e8e805d838f4d8ba384ce3.tar.xz homework-5-connormcdowell275-8001ead9eb01b3afe6e8e805d838f4d8ba384ce3.zip | |
finally getting into the groove of this assignment
Diffstat (limited to 'Project1/program.cpp')
| -rw-r--r-- | Project1/program.cpp | 52 |
1 files changed, 47 insertions, 5 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp index e893d7f..e5cd30a 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -10,11 +10,53 @@ using std::cin; using std::cout; using std::endl; -int main() -{ - addNew(); - +// +// +//int main() +//{ +// +// +// +// +// +// return 0; +//} - return 0; +int main() +{ + 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;*/ }
\ No newline at end of file |