I've been working on an program for a class and I keep getting an error when I try to compile it. I can't find a way to fix it, so I thought I'd ask for help here.
The program does a binary search to look up a student's name in a list. The user inputs a name, and that name is passed to a function that uses strcmp to perform the search on my list.
error C2664: 'strcmp' : cannot convert parameter 2 from 'char' to 'const char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Parameter 2 is the name inputted by the user. This error occurs on the line where strcmp is used.
Can anyone tell me what this means?