I was going through a code where I encountered some problem and was able to crack this piece of code:
#include <iostream>
#include <stdint.h>
#include <unistd.h>
#include <errno.h>
#include <vector>
#include <sys/types.h>
using namespace std;
class abc {
public:
abc(int x,int y) {
cout << "x:" << x << endl;
cout << "y:" << y << endl;
}
virtual ~abc() {}
enum example {
a = 1,
b = 2,
c = 3,
d = 4
};
};
template<typename T>
class xyz {
public:
void some_func(abc *a) {
cout<<"some_func called"<<endl;
}
};
int main() {}
I want to call the function
some_func()
from main()
. How should I do that. Can somebody help me with this??