C++: How to make comparison function for char arrays?
- by Newbie
Is this possible? i get weird error message when i put char as the type:
inline bool operator==(const char *str1, const char *str2){
// ...
}
Error message: error C2803: 'operator ==' must have at least one formal parameter of class type ... which i dont understand at all.
I was thinking if i could directly compare stuff like:
const char…