title: argument of type "double" is incompatible with parameter of type "double *"
body: <p>I am trying to pass the pointer to a data structure  member into a function. I am passing 4 variable and the two string members are being passed but the two double members keep giving the this error. I don''t understand why this is causing an error. </p>
  
  <p>The prototype: </p>
  
  <pre><code>void InputEmployeeData(std::string *LastName, std::string *FirstName, double *HrsWrkd, double *PayRate);
  </code></pre>
  
  <p>My Main function:</p>
  
  <pre><code> int main()
      {
          EmployeeRecord *ptr, Employees;
          ptr = &amp;Employees;
  
          InputEmployeeData(ptr-&gt;LastName, ptr-&gt;FirstName, ptr-&gt;HrsWrkd, ptr-&gt;PayRate);
      }
  </code></pre>
  
  <p>The function:</p>
  
  <pre><code>void InputEmployeeData(std::string *LastName, std::string *FirstName, double *HrsWrkd, double *PayRate)
  {
      /*Input module that requests employee's first name, last name, hours worked, and pay*/
  
      std::cout &lt;&lt; "Enter employee's first name: ";
      std::cin &gt;&gt; *FirstName;
      std::cout &lt;&lt; "Enter employee's last name: ";
      std::cin &gt;&gt; *LastName;
  
      std::cout &lt;&lt; "Enter number of hours worked: ";
      std::cin &gt;&gt; *HrsWrkd;
  
      std::cout &lt;&lt; "Enter hourly pay rate: ";
      std::cin &gt;&gt; *PayRate;
  }
  </code></pre>