Functions & Calculations

222
Last edited on
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]

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
Topic archived. No new replies allowed.