title: getline() error. no instance of overloaded function matches argument list.
body: <p>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. </p>
  
  <p>Here is my code snippet:</p>
  
  <pre><code>    string equation;
      cout&lt;&lt;"Enter the string";
  getline(cin, equation);
  </code></pre>
  
  <p>can anyone please tell me if i am missing something. </p>
  
  <p>Thanks.</p>