// file: lecture_25/myfuncts_00.cc // // include files // #include "myprog.h" // 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; } // method: set_values() // bool Toaster::set_values(long len_a, long width_a, float weight_a) { fprintf(stdout, " %d %d %d\n", len_a, width_a, weight_a); // assign values // len_d = len_a; width_d = width_a; weight_d = weight_a; // exit gracefully // return true; }