Oct 19, 2013 at 3:13pm Oct 19, 2013 at 3:13pm UTC
Is double part of the iostream library? I'm on my cell and I'm pretty noob so I don't know for sure, but try to add this after your iostream:
#include <math.h>
Also, fixedpoint and showpoint are not defined...
Last edited on Oct 19, 2013 at 3:13pm Oct 19, 2013 at 3:13pm UTC
Oct 19, 2013 at 3:27pm Oct 19, 2013 at 3:27pm UTC
You wrote half =/2;
in line 10, I think what you meant was half = number / 2;
Also, in line 11, use "fixed" not "fixedpoint"
Oct 19, 2013 at 6:47pm Oct 19, 2013 at 6:47pm UTC
@belgarionriva
I really do think double is part of iostream library isn't it?
can anyone enlighten please?
Oct 19, 2013 at 7:06pm Oct 19, 2013 at 7:06pm UTC
double is a built in type