enumeration type triangleType with values

could someone help me make sense of this question please?

"8. Define an enumeration type triangleType with values EQUILATERAL,
RIGHT, ISOSCELES, and SCALENE. Also declare the variable triangle of
type triangleType while defining this type. (7)"


1
2
3
4
5
6
7
8
9
enum triangleType
{
    EQUILATERAL,
    RIGHT,
    ISOSCELES,
    SCALENE
};

triangleType triangle = ISOSCELES;
Topic archived. No new replies allowed.