diff options
Diffstat (limited to '12a/12a.cpp')
| -rw-r--r-- | 12a/12a.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/12a/12a.cpp b/12a/12a.cpp index c191b6b..2d51a61 100644 --- a/12a/12a.cpp +++ b/12a/12a.cpp @@ -8,6 +8,7 @@ using namespace std; #define ARRAY_SIZE 100 +#define EXIT 3 void GetChoice(int& choice); @@ -22,7 +23,7 @@ int main() int strct = 0, choice = 0; - while (choice != 3) + while (choice != EXIT) { GetChoice(choice); switch (choice) @@ -33,7 +34,7 @@ int main() case 2: PrintList(strs, strct); break; - case 3: + case EXIT: cout << "Exiting Program..."; break; default: |