#include<iostream>
#include<string>
using namespace std;
class Myprint {
public:
void operator()(string text) {
cout << text << endl;
}
};
void test1() {
Myprint myprint;
myprint("helloworld");
}
class Myadd {
public:
int operator()(int a, int b) {
return a + b;
}
};
void test2() {
Myadd myadd;
int dd=myadd(100, 855);
cout << dd << endl;
cout << Myadd()(100, 200) << endl;
}
int main() {
test1();
test2();
system("pause");
return 0;
}