title: I am trying to make a expense calculator in C++ and I get this error error C2064: term does not evaluate to a function taking 1 arguments
body: <p>I am having trouble getting the code to run properly any help would be very appreciated and grateful for. I am getting error: </p>
  
  <pre><code>C2064: term does not evaluate to a function taking 1 arguments
  </code></pre>
  
  <p>In this piece of code: </p>
  
  <pre><code>totalBills (bills);
  cout&lt;&lt;endl&lt;&lt;" Enter 1 for payments or 0 to end ";
  cin&gt;&gt; bill;  
  </code></pre>
  
  <hr>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  #include &lt;cmath&gt;
  using namespace std;
  
  void totalBills (double bills, double bill1, double bill2, double bill3, double bill4,       double bill5);
  void totalPayments (double payment, double payment1, double payment2, double payment3 );
  
  
  void main()
  {
  double bill = 0.0;
  double payments = 0.0;
  double totalBills = 0.0;
  double bills = 0.0;
  cout&lt;&lt; "Enter 1 to set bills or zero to end: ";
  cin&gt;&gt; bill;
  
  while (bill &gt; 0);
  {
   totalBills (bills);
   cout&lt;&lt;endl&lt;&lt;" Enter 1 for payments or 0 to end ";
   cin&gt;&gt; bill;
  
  }
  
  
  
  
  system("pause");
  }
  
  
  void totalBills (double bills, double bill1, double bill2, double bill3, double bill4, double bill5)
  {
  cout&lt;&lt; "What is bill 1: ";
  cin&gt;&gt; bill1 ;
  cout&lt;&lt; "what is bill 2: ";
  cin&gt;&gt; bill2 ;
  cout&lt;&lt; "What is bill 3: ";
  cin&gt;&gt; bill3 ;
  cout&lt;&lt; "What is bill 4: ";
  cin&gt;&gt; bill4 ;
  cout&lt;&lt; "What is bill 5: ";
  cin&gt;&gt; bill5 ;
  
  bills=bill1+bill2+bill3+bill4+bill5;
  }
  
  void totalPayments (double payments, double payment1, double payment2, double payment3 )
  {
  cout&lt;&lt; "What is payment 1: ";
  cin&gt;&gt; payment1;
  cout&lt;&lt; "What is payment 2: ";
  cin&gt;&gt; payment2;
  cout&lt;&lt; "What is payment 2: ";
  cin&gt;&gt; payment3;
  
  payments=payment1+payment2+payment3;
  
  }
  </code></pre>