diff options
| author | alexandra-apetroaei <andra@MSI> | 2022-10-19 13:34:58 -0800 |
|---|---|---|
| committer | alexandra-apetroaei <andra@MSI> | 2022-10-19 13:34:58 -0800 |
| commit | 4a21b2a833d07c47b477b78a27fd5390e4779b19 (patch) | |
| tree | 71ace1673c0fe122e288af9aaa6c9d15e0b458e9 /CST116-Ch9-Debugging/CST116-Ch9-Debugging-Apetroaei.cpp | |
| parent | Igrnore final I'm still working (diff) | |
| download | cst116-ch9-debugging-alexandra-apetroaei-main.tar.xz cst116-ch9-debugging-alexandra-apetroaei-main.zip | |
Diffstat (limited to 'CST116-Ch9-Debugging/CST116-Ch9-Debugging-Apetroaei.cpp')
| -rw-r--r-- | CST116-Ch9-Debugging/CST116-Ch9-Debugging-Apetroaei.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Apetroaei.cpp b/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Apetroaei.cpp index 7fce779..308eaf8 100644 --- a/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Apetroaei.cpp +++ b/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Apetroaei.cpp @@ -80,7 +80,7 @@ int main() // Breakpoint 1 // Put breakpoint on the following line - age = GetAge( ); + age = GetAge(); days = CalcDays( age); // Breakpoint 2 @@ -89,6 +89,14 @@ int main() return 0; } + +int GetAge() +int Calcdays(int years) +void PrintResults(int age, int days) +{ + cout << age << " ! Boy are you old!" << endl; + cout << " Did you know that you are at least " << days << " days old?" << endl; +} int GetAge() { int age; @@ -106,8 +114,4 @@ int CalcDays( int years) return days; } -void PrintResults(int age, int days) -{ - cout << age << " ! Boy are you old!\n"; - cout << " Did you know that you are at least " << days << " days old?\n\n"; -} + |