3 #include "TestClass.hpp"
4 #include "CallBack.hpp"
8 int main(int argc, char *argv[])
11 TestClassInterface *tc = new TestClass();
12 cout << "Return value: " << tc->setAndGetA(123) << endl;
13 cout << "Return value: " << tc->setACAndGetA("string", 123) << endl;
15 input.push_back("123");
16 input.push_back("456");
17 input.push_back("987");
21 input.push_back(987);*/
23 cout << "Return value: " << tc->sumArray(input) << endl;
26 vector<CallBackInterface*> test;
27 CallBackInterface *cb1 = new CallBack(12);
28 CallBackInterface *cb2 = new CallBack(22);
29 CallBackInterface *cb3 = new CallBack(32);
33 for (CallBackInterface *cb : test) {
34 cout << "Test print: " << cb->printInt() << endl;