From f895aaa565d4c692476a4152dd39b1a3417a7128 Mon Sep 17 00:00:00 2001 From: JacobAKnox <91796123+JacobAKnox@users.noreply.github.com> Date: Wed, 10 Nov 2021 10:27:00 -0800 Subject: refacotred some code to make it work --- Project2.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Project2.cpp') diff --git a/Project2.cpp b/Project2.cpp index 80954a6..0cbf859 100644 --- a/Project2.cpp +++ b/Project2.cpp @@ -9,10 +9,14 @@ using namespace std; int main() { - int num = 10, choice = 0; - while (choice != 7) + int num = 0, choice = 0; + GetData(num); + + while (choice != 6) { DisplayMenu(choice); ProcessMenuChocie(choice, num); } + + cout << "Exiting Program..."; } -- cgit v1.2.3