searching an array :/

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.

Last edited on
pm2gonzales wrote:
I'm getting quite a few errors

What are the errors?
I'm using Visual Studo 2008.



All this started coming when I added the rentMovie function, everything worked perfectly before then
Last edited on
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
Topic archived. No new replies allowed.