CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
#include <functional>
using namespace std;
void myTaskExecuter(function<void(void)> fun)
{
fun();
}
class myOperations
{
public:
void addition(int a,int b)
{
cout << a << " + " << b << " :" << a + b << endl;
}
void substraction(int a,int b)
{
cout << a << " - " << b << " :" << a - b << endl;
}
void maximum(const vector<int>& arr)
{
for (auto val : arr)
cout << val << ",";
cout << " and max value is ";
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run