[Fwd: C:How to program 3rdEd, fig18_03.cpp](g++ 4.4.3)(trouble on simple overload)
Jonathan Wakely
jwakely.gcc@gmail.com
Sun Mar 20 18:42:00 GMT 2011
On 20 March 2011 18:22, eric wrote:
>
>
>
> ---------- Forwarded message ----------
> From: eric <fsshl@att.net>
> To: deitel@deitel.com
> Date: Sun, 20 Mar 2011 11:18:14 -0700
> Subject: C:How to program 3rdEd, fig18_03.cpp
> Dear Deitel:
>
> I copy every thing on your program and try to run on my g++ 4.4.3
> I found, if I copy paste the main()'s cout << "Enter---
> cin >> phone;
> cout << "The---
>
> twice or thrice
> output is not correct(not what be expected)
The program doesn't consume the newlines following the phone numbers
in the user input.
More information about the Gcc-help
mailing list