getchar()
那么恭喜你, 这个点数据可能是换行符有问题,需要判断换行符。
这里提供:
inline void skip_space(void) { int x; while ((x = getchar()) =='\n'||x=='\r'); ungetc(x, stdin); }