// file: myfuncts.cc // // include files // #include "myprog.h" // method: display() // bool Toaster::display(FILE* fp, char* str) { // print the contents // fprintf(fp, "object name: %s\n", str); fprintf(fp, "length = %d\n", len_d); fprintf(fp, "width = %d\n", width_d); fprintf(fp, "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) { // assign values // len_d = len_a; width_d = width_a; weight_d = weight_a; // exit gracefully // return true; }