// file: $(ECE_1111)/labs/01/l01_03/myfuncts_00.cc // // revision history: // 20180724 (JP): initial version // // local include files // //#include "myprog.h" // function: set_value_long // // arguments: // long value: the input value // // return: the value of the input // // This function simply returns the value of the argument. // long set_value_long(long value_a) { value_a = 27; return value_a; } // function: set_value_float // // arguments: // float value: the input value // // return: the value of the input // // This function simply returns the value of the argument. // float set_value_float(float value_a) { return value_a; } // function: compute_sum // // arguments: // long value1: the first operand // float value2: the second operand // // return: the sum of the inputs // // This function simply returns the sum of the arguments. // float compute_sum(long value1_a, float value2_a) { return value1_a + value2_a; }