Rust 中有 ++ 和 -- 运算符吗?
Are there the ++ and -- operators in Rust?
Rust 是否像 C++ 中那样包含 ++ 和 -- 运算符?
在 C++ 中:
int num = 1;
num++;
// num is now 2
Rust 不支持递增 (++) 和递减运算符。
Rust 是否像 C++ 中那样包含 ++ 和 -- 运算符? 在 C++ 中:
int num = 1;
num++;
// num is now 2
Rust 不支持递增 (++) 和递减运算符。