hi joew08,

seems you tried to declare 2 functions, try this, only the second:

template <class T>

T average(T a1,T b2, T c3); //Overloaded function

template<class T>

T average(T a1, T b2, T c3) // << remove the semicolon here

{ if (number = 2)

average = (a1 + b2) / 2;

else if (number = 3)

average = (a1 +b2 +c3 ) / 3;

else

cout << "Try agian" <<endl;

return double average;

}

hope it helps :)

ike

seems you tried to declare 2 functions, try this, only the second:

template <class T>

T average(T a1,T b2, T c3); //Overloaded function

template<class T>

T average(T a1, T b2, T c3) // << remove the semicolon here

{ if (number = 2)

average = (a1 + b2) / 2;

else if (number = 3)

average = (a1 +b2 +c3 ) / 3;

else

cout << "Try agian" <<endl;

return double average;

}

hope it helps :)

ike