Colored shapes

Hello,
I have an assignment to make a colored shape. Can some one tell me how do I do it?
Are 3rd party libraries allowed?

Aceix.
Last edited on
actually,no
wow!

Aceix.
1
2
3
4
5
6
7
8
9
10
11
12
struct rectangle
{
    enum colour_t { WHITE, RED, GREEN, BLUE, MAGENTA, CYAN, YELLOW, BLACK };

    rectangle( unsigned int height, unsigned int width, colour_t clr ) ;

    // ...

    unsigned int width ;
    unsigned int height ;
    colour_t colour ;
};
Topic archived. No new replies allowed.