关于计算器的式子 #18
-
|
ppt上说”1×-1"这样的式子是不合法的,那么对于负号来说,一定要"1×(-1)"这样吗,那么"-1"就不合法,要"(-1)"吗这是关于负号的使用的合法性,应该要统一吧 |
Beta Was this translation helpful? Give feedback.
Answered by
RicoloveFeng
Feb 20, 2022
Replies: 1 comment 4 replies
-
|
|
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
RicoloveFeng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1x-1不合法是因为不能有两个连续的运算符,负号可以出现在表达式的开头或者左括号的后面,这里没有什么冲突吧