aboutsummaryrefslogtreecommitdiff
path: root/Project1/program.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project1/program.cpp')
-rw-r--r--Project1/program.cpp52
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