title: error: invalid operands of types ‘double*’ and ‘double’ to binary ‘operator/’
body: <p>I have my program and I am using g++ compiler.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;math.h&gt;
  using namespace std;
  
  double getCal(double *par);
  
  int main() {
      double final_price;
      double discount;
      discount = 12;
  
      final_price = getCal(&amp;discount);
      cout &lt;&lt; "final price for you is" &lt;&lt; final_price &lt;&lt; endl;
  
      return 0;
  }
  
  double getCal(double *par) {
      double original_price;
      double r;
  
      cout &lt;&lt; " enter the price" &lt;&lt; endl;
      cin &gt;&gt; original_price;
  
      r= (par/100.00);
      return original_price - (original_price*r);
  }
  </code></pre>
  
  <p>I have checked reference for cmath but I haven't noticed division function that would replace my operator.Both par and 100.00 are doubles.What should I CHANGE?</p>