18 lines
726 B
C
18 lines
726 B
C
// 10-29-2024 @ 2:25AM
|
|
|
|
// https://www.learncpp.com/cpp-tutorial/header-guards/
|
|
// #ifndef MATH_FUNCTIONS_H
|
|
// #define MATH_FUNCTIONS_H
|
|
// #endif
|
|
|
|
// Oops I forgot to include this in the header like in C++.
|
|
// It worked without it but gave errors, I didn't think that would work.
|
|
// https://stackoverflow.com/questions/28170800/compiler-gives-warning-c4013-getche-undefined-assuming-extern-returning-in
|
|
extern void mathFunctions();
|
|
|
|
// Oops also I had the full definitions in here when the function should've been in the C file.
|
|
// It's been a little while since I've messed with a C type language
|
|
int add(int num1, int num2);
|
|
int subtract(int num1, int num2);
|
|
int divide(int num1, int num2);
|
|
int multiply(int num1, int num2); |