Re: [Fwd: C:How to program 3rdEd, fig18_03.cpp](g++ 4.4.3)(trouble on simple overload)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20 March 2011 18:22, eric wrote:
>
>
>
> ---------- Forwarded message ----------
> From: eric <fsshl@xxxxxxx>
> To: deitel@xxxxxxxxxx
> 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.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux