im using dev-c++ and have a string declared like this
this is how the user inputs data into the string
cout << "Enter the Name of Item " << x << ": ";
cin >> itemname[x];
cout << endl;
if the user inputs a space somewhere, e.g. "X Y" the program pretty much stops working and refuses to accept any more inputs.
am i doing something wrong? anything else i can do?