ISO C++ forbids comparison between pointer and integer [-fpermissive]

Today, when using C++ to brush the problem, encountered this problem, blame their own carelessness.

When determining whether a character pointer points to the end of a string, the character ‘\0’ is written as a comparison error raised by ‘\0’, which in comparison represents the address of the string ‘\0’.
One thing to note from this is that string comparisons in C++ are best done with STRCMP.

Read More: