[转] 数据输入加速
摘要:
来自风神博客:http://blog.csdn.net/shahdza/article/details/6317011①//适用于正整数template inline void scan_d(T &ret) { char c; ret=0; while((c=getchar())'9'); while(c>='0'&&cinline bool scan_d(T &ret) { char c; int sgn; if(c=getchar(),c==EOF) return 0; //EOF while(c!='-' 阅读全文
posted @ 2013-07-18 21:54 kuangbin 阅读(603) 评论(0) 推荐(0) 编辑