You are trying to compare c-strings, which are basically arrays of type char.
This can't be done just using a==b, because the name of an array actually holds the memory address to the first element of the array.
So in your case, you're actually asking "is the address of array a the same as that of array b?", which is off course not the case.
The recommended solution is to use std::string, which will allow you to do such comparison: