diff options
| -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; |