question on struct in c++
<p>I have the following code</p>

<pre><code>#include &lt;iostream&gt;
#include&lt;string&gt;
#include &lt;sstream&gt;
using namespace std;
struct product{
    int weight;
    float price;
};
int main(){
    string  mystr;
    product  prod;
    product *pointer;
    pointer=&amp;prod;
    getline(cin,pointer-&gt;price);
    return 0;
}
</code></pre>

<p>but it shows me the mistake</p>

<blockquote>
  <p>no instance  of overloaded  function "getline" matches argument list</p>
</blockquote>

<p>What is the mistake?</p>
