![]() |
| | #1 |
| Registered User Join Date: Mar 2008
Posts: 4
| cents is always zero and the symbol is not defined! |
| MMu is offline | |
| | #2 |
| Cat without Hat Join Date: Apr 2003
Posts: 8,439
| It can't parse the separating dot. You need to read it into a dummy char. By the way, you're using the pre-standard headers. See the FAQ for why you should use <iostream> instead of <iostream.h>, and what else you need to change as a consequence.
__________________ All the buzzt! CornedBee"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code." - Flon's Law |
| CornedBee is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Overloading fstream's << and >> operators | Bubba | C++ Programming | 2 | 04-09-2007 03:17 AM |
| Overloading << and >> | Enahs | C++ Programming | 2 | 09-15-2005 04:33 PM |
| << and >> overloading | Armatura | C++ Programming | 2 | 12-07-2003 06:19 PM |
| Overloading the << and >> operators | WebmasterMattD | C++ Programming | 9 | 10-15-2002 05:22 PM |
| istream >> overloading | wazza13 | C++ Programming | 1 | 05-03-2002 10:56 PM |