I'm trying to search through an array, and give a value to a customer. In the movie rented char, it will put in the name of the movie and in the movie list, the move will become "unavailable". I'm getting quite a few errors, I heard it's easier to compare strings, but I've already done the majority of this using cstring. The problems are coming from the rentMovie function.
Have you looked at the errors at all? A lot of them are very self-explanatory.
1~4 are from attempting to use == to compare and int and a pointer to a character (possibly a C-style string) which you can't do.
5 means of the two overloads for search() you have, you are passing parameters that don't work for either
6 means you are trying assign to something that can't be assigned to (like assigned 32 = a or something like that)
8: You are trying to assign an integer to a character array, which doesn't work
9: You have an else that isn't following an if; this is probably because you made a mistake with your curly braces {} (line 72 on the posted code, looks like you might be missing a }? )
10~19: These all come from the problem with the curly braces