diff options
| author | DoolyBoi <[email protected]> | 2022-10-18 19:31:14 -0700 |
|---|---|---|
| committer | DoolyBoi <[email protected]> | 2022-10-18 19:31:14 -0700 |
| commit | 6edfaba769f551401afbe5e4cc4f66c8276dd4fd (patch) | |
| tree | a62b3f9ceb9f7e0913b0044585e4600ac7f16e0a /CST116-Ch9-Debugging/CST116-Ch9-Havaldar.cpp | |
| parent | file renamed (diff) | |
| download | cst116-ch9-debugging-abd00l4h-6edfaba769f551401afbe5e4cc4f66c8276dd4fd.tar.xz cst116-ch9-debugging-abd00l4h-6edfaba769f551401afbe5e4cc4f66c8276dd4fd.zip | |
finished debugging exercise 1
Diffstat (limited to 'CST116-Ch9-Debugging/CST116-Ch9-Havaldar.cpp')
| -rw-r--r-- | CST116-Ch9-Debugging/CST116-Ch9-Havaldar.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/CST116-Ch9-Debugging/CST116-Ch9-Havaldar.cpp b/CST116-Ch9-Debugging/CST116-Ch9-Havaldar.cpp index 432b1d1..d267801 100644 --- a/CST116-Ch9-Debugging/CST116-Ch9-Havaldar.cpp +++ b/CST116-Ch9-Debugging/CST116-Ch9-Havaldar.cpp @@ -73,11 +73,11 @@ const int DAYS_PER_YEAR = 365; int GetAge(); int CalcDays(int age); void PrintResults(int age, int days); +int age = 0; +int days = 0; int main() { - int age = 0; - int days = 0; // Breakpoint 1 // Put breakpoint on the following line @@ -92,7 +92,6 @@ int main() } int GetAge() { - int age; cout << "Please enter your age: "; cin >> age; |