Zoo tutorials: [ SQL | Linux | XML ]
ProgZoo: [ Java | C# | VB | C++ | Perl ]
Log in

A Gentle Introduction to
C++ Programming

Tutorial: Rectangles - Denmark

 

1. Denmark


Big

Flag of Denmark

We complete Denmark with three rectangles.

  • We draw a big red rectangle for the background.
  • We draw a wide, short rectangle for the horizontal bar of the cross.
  • We draw a tall thin rectangle for the vertical bar.

The Danish flag (Dannebrog) should have the cross shifted to the hoist side (the left) - our original program draws it in the center.

Hint: