@[Wei_taming](/space/show?uid=82814)
```
while(!isdigit(c = getchar())); x = c ^ 48;
```
是什么?我没学过啊
by wxy_god @ 2018-09-25 18:15:03
@[我是一个垃圾](/space/show?uid=89396)
你指 isdigit() 么?那是ctype库里的一个bool函数,返回一个字符是否是数字字符
by Wei_taming @ 2018-09-25 18:17:12
@[Wei_taming](/space/show?uid=82814)
我是想问:
```
x = c ^ 48;
```
是什么意思
by wxy_god @ 2018-09-25 18:19:53
@[我是一个垃圾](/space/show?uid=89396)
异或啊,48是'0'的ascii码,而在'0'~'9'内的ascii码^48是等价于-48的
by Wei_taming @ 2018-09-25 18:26:28
@[Wei_taming](/space/show?uid=82814) 哦,懂了
by wxy_god @ 2018-09-25 18:29:06
@[kkksc03](/space/show?uid=1) 此题是数据有误
by Carbon @ 2018-10-09 10:30:07
@[Wei_taming](/space/show?uid=82814)
他是想告诉你优先级错了
by chdy @ 2019-04-30 14:49:21
@[chdy](/space/show?uid=59688) 什么优先级错了...难道是先赋值后异或不成????(。-。)
by Wei_taming @ 2019-05-01 08:15:55
@[Wei_taming](/space/show?uid=82814) 哦哦是我错了,我太菜了。
不过这道题好像真的有点问题
by chdy @ 2019-05-01 14:36:59