In C++, when you divide an integer by another integer, the result is an integer due to integer division. However, when you divide by 3.0, the result is a double, because floating-point division is used instead.
C++ does not have a built-in logical XOR (^^) operator like it does for logical AND (&&) and logical OR (||).
Microsoft Copilot
沒有留言:
發佈留言