// file: t_00.cc // // system include files // #include "t.h" // method: set_value() // bool Toaster::set_value(long len_a, long width_a, float weight_a) { len_d = len_a; width_d = width_a; weight_d = weight_a; return true; } // method: display() // bool Toaster::display(FILE* fp_a, char* str_a) { // print the contents // fprintf(fp_a, "object name: %s\n", str_a); fprintf(fp_a, "length = %d\n", len_d); fprintf(fp_a, "width = %d\n", width_d); fprintf(fp_a, "weight = %f\n", weight_d); // exit gracefully // return true; }