lhs op= rhs
의 방식으로 작동한다.
ex) cost += item * tax // cost = cost + (item * tax)
'C++ > 기타' 카테고리의 다른 글
[C++] 랜덤 숫자 random number (0) | 2023.12.16 |
---|---|
[C++] <iomanip> setprecision(n) (0) | 2023.12.10 |
[C++] c++에서 boolean 값을 true/false로 출력하고 싶을 때 (0) | 2023.12.07 |
[C++] 정수끼리의 나눗셈 (0) | 2023.12.07 |
[C++] Increment/Decrement Operator (증감연산자) ++, -- (0) | 2023.12.07 |