aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch9-Debugging/CST116-Ch9-Havaldar.cpp
diff options
context:
space:
mode:
authorDoolyBoi <[email protected]>2022-10-18 19:31:14 -0700
committerDoolyBoi <[email protected]>2022-10-18 19:31:14 -0700
commit6edfaba769f551401afbe5e4cc4f66c8276dd4fd (patch)
treea62b3f9ceb9f7e0913b0044585e4600ac7f16e0a /CST116-Ch9-Debugging/CST116-Ch9-Havaldar.cpp
parentfile renamed (diff)
downloadcst116-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.cpp5
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;