The first thing I would do is initialize your variable to 0.  Then run
the program again, if the returned value is zero.  Then you know that
the cin part is not working.  If you still get a weird value, then you
are probably exceeding the limits of the double for your compiler.  The
size of a double is not necessarily the same on each compiler.  So I
would check the documentation to see if you have exceeded the limits of
the data type.

_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to