Here is my function definition: int search(const string& searchfor, const Protein Datalist[], int lines);
and the same thing is copied down below along with the declaration:
1 2 3 4 5
int search (const string& searchfor, const Protein Datalist[], int lines) {
int loc = Datalist[0].Sequence.find(searchfor, 0);
return (loc);
}
I have also called the function within the code but when I compile I get 2 errors saying "missing type specifiers - int assumed" and "missing ',' before identifier "Datalist". I have declared ALL type specifiers and I don't even know what the second error is talking about. Could someone clarify this for me? Thanks.