I have searched for this error but noone seems to be having the same problem as me. I am trying to make a basic text based RPG game in C++ to learn, and I want the user to b
If you're using a C string (char[]), you need to use strcmp() to compare it. If the two strings are equivalent, it will return 0.
char[]
strcmp()
if (strcmp(current_move, "ATTACK") == 0) will return true if they match.
if (strcmp(current_move, "ATTACK") == 0)
true