#include "stdafx.h"
#include <iostream>
using namespace std;
#include <string>
template<class T>
class students
{
friend void shows(students<T> &);
private:
T name;
void ShowInfo();
public:
students(T x)
{
name=x;
}
};
template<class T>
void shows(students<T> &stu)
{
cout<<stu.name;
}
int _tmain(int argc, _TCHAR* argv[])
{
students <int> mat(10);
shows(mat);
return 0;
}
Im getting this error:
Error 1 error LNK2019: unresolved external symbol "void __cdecl shows(class students<int> &)" (?shows@@YAXAAV?$students@H@@@Z) referenced in function _wmain