Change c1 << Total; to: c1 << std::setprecision(10) << Total;
And don't forget to #include <iomanip> for this.
[edit]Darn, too slow
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403
The trick is to use fixed
c1 << fixed << setw(6) << Total;
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343