philsim
asked on
Databases and Arrays
i have ...
int temp[9]
void running(int temp[])
void main()
{
cout<<"blah"<<endl;
running(temp[]);
}
void running(int temp[])
{
cout<<"blah again"<<endl;
}
and it has an error saying that there are too few arguements at line 2 or whatever.
and is there a way to link a database to my program if so how? I am using Visual Studio or is there a better program?
int temp[9]
void running(int temp[])
void main()
{
cout<<"blah"<<endl;
running(temp[]);
}
void running(int temp[])
{
cout<<"blah again"<<endl;
}
and it has an error saying that there are too few arguements at line 2 or whatever.
and is there a way to link a database to my program if so how? I am using Visual Studio or is there a better program?
You're missing some semicolons, one after temp[9] and one after your function prototype void running(int temp[]).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
running(temp) not temp[]
when called functions are passed in names of args, not the prototype of args.
what kind of database do you mean?
ASKER
thanks very much the sample code was just a sample not my real program but when i called the sub program i did include the []