passing arrays of structs :(
Ok i have a program that must pass an array of structures to be operated on. Below I have the code for the function prototype, the declaration of each part, and the function call. The error I am getting is:
'manual' : cannot convert parameter 1 from 'main::crypt *' to 'crypt[]'
Code:
void manual( struct crypt [], char []); <-- function prototype
int main()
{
struct crypt{char encoded; char decoded;};
struct crypt key[]={ key is initialized properly without errors};
....
blah
....
manual( key , message ); <-- function call
...
blah
...
return;
}
So i'm trying to send it key, which is an array of structs, and message, which is just a string. Any help on what I'm missing would be great before I lose any more hair :(