Hi i am trying to use getline() function by giving two arguments to it. but it is giving error as no instance of overloaded function matches argument list.
Here is my code snippet:
string equation;
cout<<"Enter the string";
getline(cin, equation);
can anyone please tell me if i am missing something.
Thanks.
There is probably another function called
getlinewhich takes different arguments. To use the one you want, you have toand either use
or explicitly put
std::beforestring,cout,cinandgetline.