I’m having problems passing the account sturct array into a function.
I use
>>struct account
{
int accountNum;
float balance;
};
and to declare it.
>>struct account accInfo[SIZE];
so for the prototype i tryied
>>int hash (int acnt[SIZE], int key);
i tried passing it using
>> index = hash (accInfo[SIZE].accountNum, createAccount);
i think i need to use a pointer.. but i dont really know how that works.
any Ideas??
I use
>>struct account
{
int accountNum;
float balance;
};
and to declare it.
>>struct account accInfo[SIZE];
so for the prototype i tryied
>>int hash (int acnt[SIZE], int key);
i tried passing it using
>> index = hash (accInfo[SIZE].accountNum, createAccount);
i think i need to use a pointer.. but i dont really know how that works.
any Ideas??