Okay, I tried that but it still does not work right.
I need a function that searches a line for a phrase and if it does not find the phrase it searches one line down. When it does find it it would output what ever is on the other side of the equal sign('=').
Regarding operator==, if line is a string, then line == "test" and "test" == line should both be valid. I think the cplusplus.com info on string is missing some information.
The original code looks like it should work as long as you don't expect human to have any spaces in it, although the sample input suggests that isn't something one should expect. Deplorable indentation, btw.