My program is complete the only errors I'm getting are from my binary search and my linear search. They are the same error so I'm only going to post one.
bool searchByDescriptionBinary(char desc[][DESC_SIZE],
const int NUM_ROWS,
char searchValue[DESC_SIZE],
int& foundPosition)
{
int first = 0,
last = NUM_ROWS - 1,
middle,
position = -1;
bool found = false;
while (!found && first <= last)
{
middle = (first + last) / 2;
if (desc[middle] == searchValue)
{
found = true;
position = middle;
}
else if (desc[middle] > searchValue)
last = middle - 1;
else
first = middle + 1;
}
return position;
}