This is my code below and I cannot figure out two things one is that I keep getting an error that says "cannot convert 'int (*)()' to 'char*' for argument '1' to 'int match(char*, char*)' The error is in line 25. The second is the bubble sort portion is not printing out in a sorted form and I don't know why. Any help is appreciated.
int match(char [], char []);
int text();
int sort();
char pattern;
int main() {
char answer;
char matchM;
int sortS;
int textT;
cout<< "Would you like to match or sort? Enter m or s. Enter q to quit."<<endl;
cin>> answer;
if (answer == 'm' || answer == 'M')
{
textT= text();
matchM= match (text, pattern);
int match(char [], char []);
matchM= match (text (textT?), pattern);
char matchM;
char pattern;
int textT;
You define that match function takes two character arrays as parameters and returns an integer. But matchM is a char type variable, not an integer, and neither textT nor pattern are defined as character arrays.