EXERCISES
  1. Graphical files are stored in various format like bmp, jpg etc. Study these file formats.
  2. What is the use of clipping the graphics at the view port boundaries? (constant CLIP_ON set to 1)
  3. Write a program to show a random walk.
  4. Develop functions to show and move a cursor with help of arrow keys.
  5. Develop a program which draws a straight line with the help of a mouse. If you drag the cursor (i.e. move mouse with left button pressed), the line should be drawn from initial point to current point. (Similar to PCpaint.)
  6. Write a program to draw a dart board consisting of seven concentric filled circles with two (or three) alternate colours.
  7. Write a program to draw an image resembling Kaleidoscope view.
  8. Draw an interactive program to draw geometric ...

Get Object Oriented Programming with C++, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.