%% in while?

Hello guys, im pretty new to c++ and i just discoverd the syntax, but i have a problem(sorry for my english).When i put %% in while like this:
 
  } while ((first!=first2) %% (secend!=secend2));

It says "expected primary-expression before "%" token"
HELP!!!
i Think you meant the AND operator &&

single % has another, meaning, it returns the modulus or remainder of it's 2 operand

2 % 2 == 0
3 % 2 == 1
Thanks! Made a giant mistake :D

Last edited on
Topic archived. No new replies allowed.