|
|
readFract
function achieves nothing, the parameters need to be references.calculate
function does not calculate fractions: an int is not a fraction; integer division does not work.6:24: error: expected ',' or '...' before '&' token In function 'int main()': 31:12: error: too few arguments to function 'void readFrac(int)' 6:7: note: declared here 32:10: error: too few arguments to function 'void readOp(char&)' 7:7: note: declared here 33:13: error: too few arguments to function 'void calculate(int, int, char, int, int, int&, int&)' 9:7: note: declared here 34:13: error: too few arguments to function 'void printFrac(int, int)' 8:7: note: declared here In function 'bool validDenominator(int)': 42:25: warning: ordered comparison of pointer with integer zero [-Wextra] 46:1: warning: no return statement in function returning non-void [-Wreturn-type] At global scope: 40:27: warning: unused parameter 'denominator' [-Wunused-parameter] In function 'void readFract(int, int)': 53:19: warning: right operand of comma operator has no effect [-Wunused-value] 56:19: warning: right operand of comma operator has no effect [-Wunused-value] At global scope: 59:21: error: expected ',' or '...' before '&' token 87:1: error: expected unqualified-id before '{' token |