#include <iostream>
#include <iomanip>
#include <cstring>
usingnamespace std;
char list[][5] = {"the","big","shot"};
int searchList(char [][5], int, char []);
int main()
{
char title[20];
int result = 0;
cout << "Please int the title you wish to search for\n";
cin.getline(title,20);
result = searchList(list, 3, title);
cout << result << endl;
return 0;
}
int serachList(char titL[][5], int size, char value[])
{
int index = 0;
int position = -1;
bool found = false;
while (index < size && !found)
{
if (strcmp(titL[index],value) == 0)
{
found = true;
position = index;
}
index++;
}
return position;
}