// file: lecture_28/example.cc // // local include files // #include "t.h" // define a main program // int main(int argc, char** argv) { // declare a string // char* joe = (char*)"joe"; // declare an object // Toaster bosch; Toaster kaide; /* Toaster::TYPES foo = Toaster::CUISENART; Toaster::TYPES goo = Toaster::BOSCH; fprintf(stdout, "the value of %s = %d\n", "goo", goo); fprintf(stdout, "the value of %s = %d\n", "foo", foo); goo = Toaster::SUNBEAM; fprintf(stdout, "the value of %s = %d\n", "new_goo", goo); goo = Toaster::BRIEF; fprintf(stdout, "the value of %s = %d\n", "newest_goo", goo); Toaster::BOOL lval = Toaster::FALSE; */ // set the debug level // bosch.debug_level_d = Toaster::BRIEF; // call a function // bosch.set_value(99, 99, 99.999); kaide.set_value(-1, -1, -1.1111); // exit gracefully // return(0); }