|
http://www.jindent.com |
Previous: Line Wrapping
|
Next: Declarations
|
| Conditional operators: && || |

|
if (conditionA() && conditionB() | && conditionC() && conditionD()) | { | ... | } | |
|
if (conditionA() && conditionB() && | conditionC() && conditionD()) | { | ... | } | |
| Comparison operators: < > == != ... |

|
if (functionA(a, b, c, d, e) | < functionB(f, g, h, i, j)) | { | ... | } | |
|
if (functionA(a, b, c, d, e) < | functionB(f, g, h, i, j)) | { | ... | } | |
| Numerical operators: + - * / % & | << >> ... |

|
x = (y * 100) + 42 | + (100 - z); | |
|
x = (y * 100) + 42 + | (100 - z); | |
| Input/Output operators: << >> |

|
std::cout << "This is a simple program that outputs some text." << std::endl | << "You can output more lines of text" << std::endl | << "just by repeating the output statement like this." << std::endl; | | |
|
std::cout << "This is a simple program that outputs some text." << std::endl << | "You can output more lines of text" << std::endl << | "just by repeating the output statement like this." << std::endl; | |
| Allow wrapping after assignments = |

|
if (x == 0) | { | myNewValue = | new aVeryLongConstructorWhichIsNotEasyToWrap(); | } | |
|
if (x == 0) | { | myNewValue = new aVeryLongConstructorWhichIsNotEasyToWrap(); } | |