Hi all,
i am trying to get an address from a user but when the program gets to the street i have an issue where the intended input i would like is:
"big St"
but this causes the cin /getline function(have tried both) to write it into the next input field being state so therefore not able to enter in a state
cout << "Enter street name: (e.g. Big st, Little ave):" ;//<< endl;
getline (cin, address.street);
cout << "Enter suburb:" << endl;
getline (cin, address.suburb);
cout << "Enter state:" << endl;
getline (cin, address.state);