Can someone give me an example of how to partial name search or make the search not case sensitive. I typed these functions to search by last name but I was wondering how to partial name search/non-case sensitive. Thank you
int Search()
{
for(int i = 0 ; i < Size ; i++)
if (Target == List[i].LastName)
return i;
return -1;
}
void LookUp_Student()
{
string Target;
int Index;
cout << "\nEnter a name to search for (Last Name): ";
getline(cin,Target);
Index = Search(List,Size,Target);
if (Index == -1)
cout << Target <<" is not on the list.\n" ;
else
Print_Search(List[Index]);
}