diff options
Diffstat (limited to 'CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp')
| -rw-r--r-- | CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp index eedcdbb..80e5ea1 100644 --- a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp +++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp @@ -63,27 +63,6 @@ using std::cin; int main()
{
- /*int age = 0;
-
- cout << "Enter your age: ";
- cin >> age;
-
- // Breakpoint 1
- // Put a breakpoint on the following line
- if (age == 1)
- cout << "First Birthday" << endl;
- else if (age >= 12 && age <= 19)
- cout << "Teenager" << endl;
- else if (age < 12)
- cout << "Child" << endl;
- else if (age > 62)
- cout << "Senior" << endl;
- // Breakpoint 2
- // Put a breakpoint on the following line
- else
- cout << "Adult" << endl;
-
- return 0;*/
int age = 0;
cout << "Enter your age: ";
@@ -104,4 +83,6 @@ int main() else
cout << "Adult" << endl;
+ return 0;
+
}
\ No newline at end of file |