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