no instance of function templatemaximum* matches the argument list argument types are: (int,int,int)*
#include <iostream>
using namespace std;
template <class T>
T maximum(T value)
{
T maxValue;
if (value >= maxValue)
maxValue = value;
else
value = value;
return value;
}
int main()
{
int number1 = 1;
int number2 = 2;
int number3 = 3;
//double n1 = 1.11;
//double n2 = 2.22;
//double n3 = 3.33;
cout << " Max integer value is :" << maximum(number1, number2, number3) << endl;
return 0;
}