所以说了半天还是直接用getchar()吧
by 小电鸭 @ 2020-02-24 18:49:58
@[HyyypRtf06](/user/315602) getchar不是ASCII码表里所有都能读的吗?
by USS_Enterprise @ 2020-02-24 18:50:08
```cpp
#include<cstdio>
int main(){
char t=getchar();
printf("%d",int(t));
return 0;
}
```
输入一个空格,输出32。
by zhy137036 @ 2020-02-24 18:50:45
```cpp
scanf(" ");
```
也行啊
by dingcx @ 2020-02-24 18:52:32
@[Firestar](/user/133492) 好吧,我写炸了……qvq
by 灵光一闪 @ 2020-02-24 18:59:06
@[HyyypRtf06](/user/315602) 高仿我。。。qwq
by Hexarhy @ 2020-02-24 18:59:59
qvq!【想象在你空间里面我的鸭几】
by HyyypRtf06 @ 2020-02-24 19:01:11
```cpp
scanf("%*c");
```
by devout @ 2020-02-24 19:06:05
getline(cin,s);
by 吴铭事 @ 2020-02-24 19:08:19
@[HyyypRtf06](https://www.luogu.com.cn/user/315602)
by 吴铭事 @ 2020-02-24 19:09:13