robinremue
Member
- Reaction score
- 16
I'm new at this but how do I check if the answer on a question contains a certain string.
For example, if the answer on a question is yes, a certain output shows up, if it is not yes, something else shows up.
I got something like:
but ofc it doesn't work and I'm quite sure it can't be this easy...
Thx in advance =)
For example, if the answer on a question is yes, a certain output shows up, if it is not yes, something else shows up.
I got something like:
Code:
if (string = "yes") {
cout << "whatever"; }
else if (string = "no") {
cout << "whatever"; }
but ofc it doesn't work and I'm quite sure it can't be this easy...
Thx in advance =)