Hi Guys,
I'm kinda new at this..but I need help cause I keep on getting this error and I don't know what's wrong with it.
So Please Help Me.

Thanks.

Here's My Code:

#include <iostream>


using namespace std;

int addition (int,int,int,int,int, int);

int addition (int a, int b, int j, int k, int l, int m)
{
  int c;
  c=a+b+j+k+l;
  return (c);
}

int main ()
{
  int d;
  int e;
  int f;
  int g;
  int h;
  int i;


  cout<<endl;
  cout<<"Average Calculator"<<endl;
  cout<<endl;
  
  cout<<"Please input a number: ";
  cout<<endl;
  cin>>d;
  
  cout<<endl;
  cout<<"Please input another number: ";
  cout<<endl;
  cin>>e;
  
  cout<<endl;
  cout<<"Please input another number: ";
  cout<<endl;
  cin>>f;
  
  cout<<endl;
  cout<<"Please input another number: ";
  cout<<endl;
  cin>>g;
  
  cout<<endl;
  cout<<"Please input another number: ";
  cout<<endl;
  cin>>h;
  
  cout<<endl;
  
  i = addition(d+e+f+g+h);
  cout << "The result is " << i <<endl;
  
  system("pause");
  return 0;
}
Re: C++:"Error C2660: 'addition' : function does not take 1 arguments." HELP!!! 80 80

use commas instead of + on line 55

Re: C++:"Error C2660: 'addition' : function does not take 1 arguments." HELP!!! 80 80

use commas instead of + on line 55

Thanks so much!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.