Use strcmp() to compare the contents of C-strings. The reason it doesn't work is because they are pointers, and you are comparing the addresses, basically, not the contents of the strings.
Yeah, I noticed that too (Just today as a matter of fact) when trying to make a program that would check the equality of two strings (The actual problem was that I had to do that in the primitive compiler, Turbo C++ [Borland])