How to put two increment statements in a C++ 'for' loop ...

How to put two increment statements in a C++ 'for' loop ...

瀏覽:339
日期:2024-07-17
2009年8月5日 - for(int i = 0; i != 5; ++i and ++j) do_something(i,j) ... A common idiom is to use the comma operator which evaluates both operands, and returns the ......看更多