// file: $(ECE_1111)/labs/01/l01_03/myprog.cc // // local include files // #include "myprog.h" #define DEGREES 360 // main: myprog // // This is a driver program that does some very simple things. // int main(int argc, const char** argv) { for (long i = 0; i < DEGREES; i++) { float val = (float)i / (float)DEGREES * (float)2.0 * M_PI; fprintf(stdout, "%d (%f): %f\n", i, val, sinf(val)); } // exit gracefully // return(0); }