I have a program that I need to do for class and actually want
to learn something so I don't want to post my entire program.
Basically what I have is a dynamically allocated arrays that have structs. My problem is I'm trying to do a comparision on the passed in InputIsbn to see if it matches with something in the
ptrList[index]->Isbn if it does I want to return the index if not
Does anyone have any ideas to where the problem may lie?
I know I must be making some small error that is messing everything up. This seems like it should work but it doesn't. Anyone have any ideas?
int BookList::SearchIsbn(string InputIsbn)
for (index = 0; index < Length; index++)
co mparison = InputIsbn.compare( ptrList[index]->Isbn );
;if (comparison == 0)
&n bsp; cout << "The two strings are the same\n";
&n bsp; return index;