DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Getting Started

Start by assembling the obvious components

We start by assembling the components that jump right out of the statement of requirements:

In addition, we will define the application-specific types Appointment and Calendar. Let's put together what we know so far:

       #include <Args.h>
       #include <Regex.h>
       #include <Time.h>
       #include <String.h>
       #include <iostream.h>
       struct Appointment {
           Time time;
           String desc;
       };
       class Calendar { ... };
       main(int argc, const char*const* argv) {
           Calendar cal;
           read_appts(cal);
           process_queries(cal, argc, argv);
       }
The main program simply reads the appointments into the calendar, then processes each of the user's queries.
Next topic: Reading the appointments
Previous topic: Description of the problem

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004