strcmp smells a lot like C, this is C++, std::strings like most types I can think of in C++ can be compared with their overloaded operator == like this
strcmp works perfectly! Thanks. I tried using == to test between the two, and that results in the program considering neither to be true. Hm, someone in the past had told me to use commas in the case of comparing 2D character arrays. Thanks though, for clearing it up!
@quirky: I was originally going to suggest the == for std::string but I saw that he was using a char array and since this is just a snippet of code I didn't know whether I was worth to make him rewrite whatever he had done. Personally I still recommend when you can switching your char arrays over to std::strings which work better and are easier to use.
mp121209, that will cause problems if it is in a loop. The second time it will get a "\n" rather than the next line. That is because there is a more-or-less 1 to 1 correspondence between cin >> and scanf, and >> (string) corresponds to scanf("%s"), which gets a string of non-whitespace characters, a 'word'. Better to use getline.