[Solved] how to use strcmp in g++

The problem isn’t on the function but on the way that you’re using it. int strcmp ( const char * str1, const char * str2 ); strcmp takes two const char * arguments. The error tells you that you are giving the function a char so the problem is on the types of personalNo and/or … Read more