Hi I'm having trouble with this while loop, I'm trying to make it read multiple inputs from two different strings and see if they're the same or not. So far I got it to read one line Ex: string one: Hey
string two: Hi
output: No (meaning they're different)
If I try to input "hey how are you doing" it won't let me input the second string to compare and just says "no"
Well I tried this before, basically making tokens from a string, but it would only read the first line separated by a comma, so I thought making it really simple would help but it didn't..
while (f!= NULL && q!= NULL)
{
int result = strcmp(f,q);
if ( result == 0 )
cout <<"Yes" << endl;
else if ( result != 0 )
cout <<"No" << endl;