I am writing code to work with a driver that is provided. I am relatively new to the idea of templates and am not sure what I am doing wrong here. I am getting the error LNK1120: 1 unresolved externals, and another error LNK2019: unresolved external symbol "public: __thiscall Pair<char>::Pair<char>(char const &,char const &)" (??0?$Pair@D@@QAE@ABD0@Z) referenced in function _main any help would be appreciated.
Driver code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <iostream>
#include "pair.h"
usingnamespace std;
int main()
{
Pair<char> letters('a', 'd');
cout << "\nThe first letter is: " << letters.getFirst();
cout << "\nThe second letter is: " << letters.getSecond();
cout << endl;
system("Pause");
return 0;
}