1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// math_operations.cpp
#include "math_operations.h"
int add(int a, int b) {
return a + b;
}
int subtract(int a, int b) {
return a - b;
}
// main.cpp
#include <iostream>
#include "math_operations.h"
int main() {
std::cout << "5 + 3 = " << add(5, 3) << std::endl;
std::cout << "5 - 3 = " << subtract(5, 3) << std::endl;
return 0;
}
Back to include