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.