enumeration type triangleType with values

Nov 6, 2016 at 9:54pm
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)"


Nov 7, 2016 at 2:52am
1
2
3
4
5
6
7
8
9
enum triangleType
{
    EQUILATERAL,
    RIGHT,
    ISOSCELES,
    SCALENE
};

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