Triangles getShape(int s1, int s2, int s3) // Triangles spelt wrong
{
Triangles getShape;
if (s1+s2 <=s3 || s1+s3 <=s2 || s2+s3 <=s1)
{
cout<<"Not a valid Triangle"<< endl;
getShape = scalene; // Or add a null Triangle enum
}
elseif (s1==s2 && s2==s3)
{
cout<<"You have a Equilateral Triangle"<< endl;
getShape = equilateral;
}
else (s1==s2 || s1==s3 || s2==s1);
{
cout<<" You have a Isosceles triangle"<< endl;
getShape = isosceles;
}
return getShape; // You had forgotten to set getShape before returning it.
}