Ok I have a simple question I have a header file that has the following code
void setPartDecription(string partDescrip);
string getPartDecription() {return partDescription;}
Of course I have other functions but these are the problem functions and they are public. In my main function I have this:
cout << "\nEnter Part Description: ";
cin >> partDescrip;
Invoices[i].setPartDecription(partDescrip);
cout << Invoices[i].getPartDecription();
After I type in a part description like "This part is for the engine" it goes into an infinite loop. Is there a certain way I need to pass and return the string data type? I've tried
getline(cin, partDescrip);
but its just skips over it and doesn't even let me type a part description, help would be really appreciated.