int itrtn;
cout << "How many iterations? ";
cin >> itrtn;
double leftx, rightx,midx,midy;
cout << "Enter the endpoints of the interval containing the root: ";
cin >> leftx>>rightx;
cout<<"Enter the polynomial coefficients, ascending in degree: ";
string degree;
getline(cin,degree); // gets an entire line of input
istringstream fake_keyboard(degree); // use fake keyboard like cin
vector<double> coefficients;
double coeff;
while (fake_keyboard >> coeff) coefficients.push_back(coeff);
this is my code, but i cannot cin with getline for the third question. The compiler just skips this step and set the vector zero as default