Relevant portion of the .h file:
template<class T, class W>
T inputValidate( T input, W minVal, W maxVal);
Relevant portion of the .cpp file:
T inputValidate( T input, W minVal, W maxVal)
{
if (input < minVal || input > maxVal)
{
cout << "Invalid input! Try again: ";
cin input;
}
return input;
}
I get an error of "error: ‘T’ does not name a type"