cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
%% in while?
%% in while?
Feb 19, 2014 at 10:54am UTC
FilipPav
(2)
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 UTC
nvrmnd
(656)
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 UTC
FilipPav
(2)
Thanks! Made a giant mistake :D
Last edited on
Feb 19, 2014 at 11:57am UTC
Topic archived. No new replies allowed.