i keep getting this error through my program
error: expected ‘,’ or ‘...’ before numeric constant
the line that is getting this one is
int search (string arr[], int 1001, string name)
it is the function first line.
i also get this error
error: expected primary-expression before ‘]’ token
on both of these lines
mloc= search (mnames[], 1001, name);
floc= search (fnames[], 1001, name);
ok that solves the first error so how can i solve the error: expected primary-expression before ‘]’ token
on both of these lines
mloc= search (mnames[], size, name);
floc= search (fnames[], size, name);
i changed all of the 1001 and NUM_NAME to size now