标签:
不能读负数,不能各种读神奇的格式。
那你摆出来干什么,赚访问量?
int get() {
char ch;while (!isdigit(ch=getchar()));
int o=ch-48;while (isdigit(ch=getchar())) o=o*10+ch-48;
return o;
}
哎呀,被法线啦(>_<)
标签:
原文地址:http://blog.csdn.net/alan_cty/article/details/51685209