// file: example.cc // // local include files // #include "Example.h" // define a maximum line length // #define MAX_LINE_LEN 999 #define MAX_NUM_LINES 99 // main program // int main(int argc, char** argv) { // Declare local variables // List joe; // loop over the command line arguments // for (long i = 1; i < argc; i++) { fprintf(stdout, "... processing arg[%ld]: %s\n", i, argv[i]); // append a node to the list // joe.append(argv[i]); } fprintf(stdout, "\n"); // debug the list // joe.debug(stdout); // exit gracefully // }