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