I'm writing a code, and I'm want to have different out comes depending on wether a string includes a certain thing like if (re1 = happy || glad || fine) except if re1 includes happy or glad or fine.
Note how the test was performed for each mood, and also note the operator used; The = (assignment) operator is not the same as == (equality). The assignment operator returns the left-hand operand, while the equality operator returns a Boolean.
Yah, but that makes it put out my else statement unless it actually is happy, glad, or fine. I want it to look for the words inside statements that the user would type into char re1[999], not just if re1 is one of the words.