搜尋此網誌

2025年7月17日星期四

If-else

The ternary conditional operator is a compact way to write conditional expressions in many programming languages. It’s called “ternary” because it takes three operands: a condition, a result if true, and a result if false.

In C++, the return statement is used to exit a function and optionally send a value back to the caller. It’s a key part of how functions communicate results.

++x Increment first, then use the value

x++ Use the value first, then increment

parentheses: DJ[pəˋrenθisi:z]

versatile: DJ[ˋvə:sətail] able to do many different things

Microsoft Copilot

沒有留言:

發佈留言