There is no error, it runs fine, but it never gives me the right answer. How do I compare a char variable and a text string like "test"? I know using strings simplifies that, but I want to use char variables. How would I get the output to be YAY? Is this a syntax error or what? I know this is probably so easy; I am just mad I do not know what to do lol.
What you're doing there is effectively comparing pointers to pointers. Odd are, they aren't going to match. :/
Solution A: Use an std::string instead of char* or char[]. I'd highly suggest this over solution B. Note that you'll need to #include <string>. After changing the type, though, I don't think you'll need to change anything else.
Solution B: Use the strcmp() function in the C standard library, under <cstring>. You wouldn't get the other benefits of C++ strings with this solution, and the C++ solution looks a lot better. http://www.cplusplus.com/reference/clibrary/cstring/strcmp/
So, then what would one use a char for? I have used them before, since they are just an array of characters, but I was just wondering. I knew string would work but am still intrigued by chars. I want to know more about them. I use them some, but rarely. Could you give me a good example? Sorry for being so noobish, but I just never looked into chars too deeply before.