%% in while?

Feb 19, 2014 at 10:54am
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!!!
Feb 19, 2014 at 11:13am
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
Feb 19, 2014 at 11:55am
Thanks! Made a giant mistake :D

Last edited on Feb 19, 2014 at 11:57am
Topic archived. No new replies allowed.