Hi all
I'm reading in some data from the user but have some problems when they seperate words by a space - each word is a taken as a seperate input :-(
So if I entered "Nice one" for the suppliers address Then the address would end up as "Nice" and account name would end up as "one".Code:string name, address, account; cout << "Input suppliers name: "; cin >> name; cout << "Input suppliers address: "; cin >> address; cout << "Input suppliers account name: "; cin >> account;
Any ideas what I need to do to get correct input??
Thanks



LinkBack URL
About LinkBacks


