Code:
BOOK_STRUCT* get_book_by_title (BOOK_STRUCT library[], char* title, int lib_size)
{
BOOK_STRUCT * Result;
for (int x=0;x<=lib_size;x++){
if (title == library[x].title)
break;
if (x==lib_size)
Result = NULL;
else
//Result = (*library[x]);
//Result = NULL;
return Result;
}
}
This actually compiles but unfortunately does not work in the overall program.
I'm thinking my problem is with the if (title == library[x].title) line but since I am new to c++ I will defer to you guys.
Any assistance you might offer would be appreciated.
Thanx
