// file: $(ECE_1111)/labs/01/l01_03/myprog.cc // // local include files // #include #include #include "myprog.h" // main: myprog // // This is a driver program that does some very simple things. // int main(int argc, const char** argv) { MYSH myshoe; myshoe.brand = (char*)"Nike"; myshoe.size = (float)9.5; setsize(&myshoe); fprintf(stdout, "foo: %u\n", &myshoe.foo); fprintf(stdout, "size: %u\n", &myshoe.size); MYSH lots_of_shoes[99]; // MYSH* lots_of_shoes = new MYSH[99]; // exit gracefully // return(0); } // implement the print function // void setsize(shoes* shoe_a) { shoe_a->size = 27.0; return; }