June 2008
Intermediate to advanced
440 pages
8h 9m
English
In this chapter, we will deal with a drawing program. It is capable of drawing lines, arrows, rectangles, and ellipses. It is also capable of writing and editing text, cut-and-paste figures as well as saving and loading the drawings. The following screenshot depicts a classic example of the Draw Application:

We start by generating the application's skeleton code with the Application Wizard. The process is similar to the Ring application code.
The figures are represented by a class hierarchy. The root class is Figure. It is abstract and has a set of pure virtual methods that are to be defined by its sub classes. It has ...
Read now
Unlock full access