Код: Выделить всё
template
const Func *max (const Func* mas[3], const Func* size)
{
return (mas[0]+ mas[1]+ mas[2])/size;
}
int main()
{
int mas[3] = { 1,2,3 };
int size = 3;
int i = max(mas, size);
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78563876/i-have-problem-with-function-no-matching-overloaded-function-found[/url]