guys,

i am having a problem with the following code

Code:
			cout << "Please enter the cutomers address: ";
			getline( cin, cust.address, '\n' );
			getline( cin, cust.address, '\n' );
I have done all I need to do to fix the bug per msdn, I think, which is change the string header. In the above code, I have the getline code twice just to make the code work. Can anyone explain this. If I dont put it twice, the program just flies right by it.

I can also change the first getline to cin >> cust.address; and it will work also.

Thanks,

Jerel