diff options
| author | Asahel <[email protected]> | 2024-01-27 11:37:44 -0800 |
|---|---|---|
| committer | Asahel <[email protected]> | 2024-01-27 11:37:44 -0800 |
| commit | b47dad47ae203ba44890b9c1b43c001096e38885 (patch) | |
| tree | ee1055035be115c0d870be9885d4412e7d3c28ee /InClassExercise6 | |
| parent | Finished (diff) | |
| download | in-class-exercise-6-asahellt-main.tar.xz in-class-exercise-6-asahellt-main.zip | |
Diffstat (limited to 'InClassExercise6')
| -rw-r--r-- | InClassExercise6/InClassExercise6/Header.h | 4 | ||||
| -rw-r--r-- | InClassExercise6/InClassExercise6/Source.cpp | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/InClassExercise6/InClassExercise6/Header.h b/InClassExercise6/InClassExercise6/Header.h index 79e7b7d..ff9471e 100644 --- a/InClassExercise6/InClassExercise6/Header.h +++ b/InClassExercise6/InClassExercise6/Header.h @@ -22,11 +22,11 @@ int main(); int math_func(); -int math_func(int square = 2); +int math_func(int square); int math_func(int a, int b); -int math_func(int A, int B, int C, int x); +int math_func(int A, int B, int C, int x = 2); long factorial(int a); #endif diff --git a/InClassExercise6/InClassExercise6/Source.cpp b/InClassExercise6/InClassExercise6/Source.cpp index d0029a2..fedde73 100644 --- a/InClassExercise6/InClassExercise6/Source.cpp +++ b/InClassExercise6/InClassExercise6/Source.cpp @@ -5,7 +5,6 @@ #include <iostream> -#include "helpers.h" #include "Header.h" int main() @@ -53,7 +52,7 @@ int math_func(int a, int b){ return a + b; } -int math_func(int A, int B, int C, int x = 2) { +int math_func(int A, int B, int C, int x) { return A * x * x - B * x + C; } |