i have this function that will search an ID that match the borrowed ID in a vector and then will return the borrower with the matching ID. However i keep getting this warning?
Borrower getborrowerbyID(string ID)
{
for(int i =0; i<Borrowlist.size();i++)
{
if(Borrowlist[i].getID()==ID)
{
return Borrowlist[i];
}
}
}