Functions & Calculations

Sep 24, 2016 at 10:12pm
222
Last edited on Sep 25, 2016 at 5:55pm
Sep 24, 2016 at 10:34pm
The compiler makes the following remark about your code:
 In function 'int width(double)':
84:1: warning: no return statement in function returning non-void [-Wreturn-type]
 In function 'int height(double)':
114:1: warning: no return statement in function returning non-void [-Wreturn-type]
 In function 'int area(double)':
151:1: warning: no return statement in function returning non-void [-Wreturn-type]

Sep 24, 2016 at 11:25pm
Hello dawnstar,

Read up on setw, setpersion in the iomanip headder file.

http://www.cplusplus.com/reference/iomanip/

Then make change in the outputTV function.

Hope that helps,

Andy

Last edited on Sep 24, 2016 at 11:35pm
Topic archived. No new replies allowed.