What you are doing is printing the address of the function, not the output of the function. Also, when you called the function, you did not assign the returned value to anything so it was simply discarded. To get the triangle type:
Code:
KindOfTriangle triangle = triangleType(side1, side2, side3);
cout << triangle;
This will still only print a number corresponding to the various triangle types. To print a string based on the type, you can use a switch statement or if statements.
Code:
if(triangle == SCALENE)
cout << "Scalene";
// Etc...
// Or
switch(triangle)
{
case SCALENE:
cout << "Scalene";
break;
case ISOSCELES:
cout << "Isosceles";
break;
// Etc...
}