This is a member function:
Circle returnlargetcircle(Circle obj[], int size)
{
int radi[size];
for (int i = 0; i < size; i++)
{
radi[i] = obj[i].getradius();
}
for (int i = 0; i < size; i++)
{
if (radi[0] < radi[i])
{
radi[0] = radi[i];
}
}
}
expression must have a constant value --the value of parameter "size "(declared in line 61) can not be used as constant
What should be done in this case. I can't do this since my compiler is not allowing me to do this. What is an alternate way for this?