I want to type in a text with the std::cin and then store it in a variable, like:
char text[20];
std::cin >> text;
Then comes the problem, I want to use the if statement and depending on whatever you've typed in launch a specific action, like:
if (text=="whatever") {std::cout << "this is some text";};
else if (text=="I am old") {std::cout << "No, you're young";};
else {std::cout << "Type in something else";};
But it doesn't work out!
Help me solve this!!!!!!!!!!!!