if(cmd=="new"){
string name,desc;
cout<<"Name? ";
cin>>name;
Setcursor(Conloc);
cout<<"Desc? ";
cin>>desc;
Setcursor(Bodyloc);
Invitem Item(name,desc);
When the values of the string desc is set through cin, if a space is used, all text after that space isn't used. Also, If two words are used when setting name, it will give the second word to desc and skip that. I tried flushing the input buffer with cout.flush(), but it didn't work. What am I to do here?
Thanks!