FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
January 01, 2003

Statements and Loops

(Page 4 of 4)
Listing 3: diagonal draws a diagonal line by calling drawpixel

Listing 3: diagonal draws a diagonal line by calling drawpixel

struct POINT {int x, y};
void drawpixel(struct POINT *p);

void diagonal(int len)
{
  int y;
  for (y = 0; y < len; ++y)
    drawpixel(&(struct POINT) {y, y});
}

Previous Page | 1 | 2 | 3 | 4
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK