Link to home
Start Free TrialLog in
Avatar of philsim
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?
Avatar of DarthNemesis
DarthNemesis

You're missing some semicolons, one after temp[9] and one after your function prototype void running(int temp[]).
ASKER CERTIFIED SOLUTION
Avatar of violent1
violent1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
Avatar of philsim

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 []