2 ms·
In addition to the rightward arrow, there's the leftward arrow: int x = 3; while(n <-- x) { cout << x << endl; } which is different becaus
by repsilat 11y ago
In addition to the rightward arrow, there's the leftward arrow:
int x = 3;
while(n <-- x) {
cout << x << endl;
}
which is different because it doesn't include the lower bound `n`. And of course, if typing the ">" is too taxing, the "---" operator is equivalent to the "-->" operator:
int x = 3;
while(x --- n) {
cout << x << endl;
}
A few more goodies in this style at http://steike.com/code/useless/evil-c/ http://steike.com/code/useless/evil-c/ (home of the zip-quine.)