help i'm rather new at this but have some understanding but am having some probs with
1>c:\users\kysinden\documents\visual studio 2008\projects\real\real\test.cpp(19) : error C2660: 'atotal' : function does not take 1 arguments
1>c:\users\kysinden\documents\visual studio 2008\projects\real\real\test.cpp(21) : error C2061: syntax error : identifier 'a'
1>c:\users\kysinden\documents\visual studio 2008\projects\real\real\test.cpp(23) : error C2660: 'atotal' : function does not take 1 arguments
here is my code
#include <set>
#include <iostream>
using namespace std;
Dim ; double atotal()
;int main()
{
double itotal = 0;
double dnumber1 = 0.0;
double dnumber2 = 0.0;
double dnumber3 = 0.0;
double daverage = 0.0;
double a = 0;
cout << "please enter how many numbers: " <<endl;
cin >> itotal;
atotal(itotal);
cout << "start entering numbers" <<endl;
for a to itotal;
{
cin >> atotal(a);
}
//cin >> dnumber1;
//cin >> dnumber2;
//cin >> dnumber3;
daverage = (dnumber1 + dnumber2 + dnumber3) / 3;
cout << "the average for your numbers is : " << daverage << endl <<endl;
system ("pause");
return 0;
}
btw it is writen in a console aplication file if that helps in any way
if you have any other ideas on additions to the code please post them.
Thx.