diff options
| author | JacobAKnox <[email protected]> | 2021-11-10 19:30:47 -0800 |
|---|---|---|
| committer | JacobAKnox <[email protected]> | 2021-11-10 19:30:47 -0800 |
| commit | 1bb95c3e3f822507bdcc3660cf7f87d0e6e09587 (patch) | |
| tree | eede2c42304efb4e429352d67f07938ef9e3746c /12a | |
| parent | 12a finished (diff) | |
| download | cst116-lab7-jacobaknox-1bb95c3e3f822507bdcc3660cf7f87d0e6e09587.tar.xz cst116-lab7-jacobaknox-1bb95c3e3f822507bdcc3660cf7f87d0e6e09587.zip | |
12b done
Diffstat (limited to '12a')
| -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: |