Реферат: Системне програмне забезпечення С
sprintf(str2," %f ",average);
pen.CreatePen(PS_SOLID, 2, RGB(0,250,0));
pen1.CreatePen(PS_SOLID, 2, RGB(255,255,255));
dc.SelectObject(&pen);
GetClientRect(&rect);
int step = (rect.right - rect.left) / StepNum;
int x = average * step + 50;
step = (rect.bottom - rect.top) / Nmax;
pen.DeleteObject();
CBrush brush,brush1,brush2,brush3;
brush.CreateSolidBrush(RGB(255,255,255));
brush2.CreateSolidBrush(RGB(255,200,255));
brush3.CreateSolidBrush(RGB(0,0,0));
brush1.CreateSolidBrush(RGB(255,255,255));
dc.SelectObject(&brush);
int y = rect.bottom - index*step;
int k,d,dy = 1;
int flag=1;
int top = 5;
k = top;
while(top < y)
{
dc.SelectObject(&brush2);
dc.SelectObject(&pen);
dc.Ellipse(x, k, x+30, k-30);
for(d=0;d<1000000;d++);
dc.SelectObject(&brush2);
dc.SelectObject(&pen1);
dc.Ellipse(x, k, x+30, k-30);