I have been working on this question for ages and i keep geetting it to the point with no issues, but then it wont complie due to unresolved externals(The worst things ever!). i Just cant figure out what im doign wrong. All i have to do is convert it from being a very standard class and function to then have template abilities so it can be used for other data types. It's just annoying me and i cant get it to run!
#include <iostream>
using namespace std;
//template <class T>
class cpair
{
public:
cpair(int x = 0, int y = 0) {
A = x; B = y;
}
void print()
{
cout << A << " " << B << endl;
}
int A, B;
};