Question

[For each number N in the array, draw a circle whose radius = N and whose color is mySetColor(N). Remember to update the display after drawing all the circles!]

Okay, so this question is part of a problem that I'm doing. I get the rest, but what am I suppose to do with the circles?

Draw them. I am assuming your display doesn't update when you draw them, so you need need to manually update your display so that you can actually see the circles.
Is this a Win32 or Console program? I'm going to assume Win32 as I don't think you can draw on console... unless you draw like this "() /_\ []".

Here's how you draw a circle (from xoax.net). You can probably figure out the rest from here:
1
2
3
4
5
6
7
8
9
10
 HPEN hEllipsePen;
COLORREF qEllipseColor;
qEllipseColor = RGB(0, 0, 255);
hEllipsePen = CreatePen(PS_SOLID, 3, qEllipseColor);
hPenOld = (HPEN)SelectObject(hdc, hEllipsePen);

Arc(hdc, 100, 100, 500, 250, 0, 0, 0, 0);

SelectObject(hdc, hPenOld);
DeleteObject(hEllipsePen);
Topic archived. No new replies allowed.