diff options
| author | Connor McDowell <[email protected]> | 2024-01-25 17:44:12 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-01-25 17:44:12 -0800 |
| commit | 8e1df8203c4d864217f7fcefeffff47c7df95715 (patch) | |
| tree | 3ec32059c7de5f98df7a5ec1b9606ed7f25ae2c9 /Excersize 6.cpp | |
| parent | functions and returns added (diff) | |
| download | in-class-exercise-6-connormcdowell275-8e1df8203c4d864217f7fcefeffff47c7df95715.tar.xz in-class-exercise-6-connormcdowell275-8e1df8203c4d864217f7fcefeffff47c7df95715.zip | |
test comit
Diffstat (limited to 'Excersize 6.cpp')
| -rw-r--r-- | Excersize 6.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Excersize 6.cpp b/Excersize 6.cpp index ad1e3a2..d1177e9 100644 --- a/Excersize 6.cpp +++ b/Excersize 6.cpp @@ -10,8 +10,7 @@ int main() { - - + std::cout << math(); return 0; @@ -24,21 +23,21 @@ int math() return 0; } -int math(int square = 2) +int mathSquare(int square) { return square * square; } -int math(int a, int b) +int mathSum(int a, int b = 2) { return a + b; } -int math(int A, int B, int C, int x) +int mathOverload(int A, int B, int C, int x) { return A * x * x - B * x + C; |