cpp
Viko_ReCode
这个作者很懒,什么都没留下…
展开
-
输入运算符小记
输入时加上%*[^\n]可忽略一行的输入 输入时加上%*c可忽略一个字符的输入 输入时加上%*d可忽略一个整型数的输入 %后加*可忽略%*type的type类型的输入 sample: #include int main() { int n; scanf("%*[^\n]%d", &n); printf("%d", n); r原创 2013-08-02 20:01:18 · 487 阅读 · 0 评论 -
输入外挂
原文地址:http://blog.csdn.net/niushuai666/article/details/6689043#comments 实测使用freopen输入大量长度为8位的整型数时,用以下方式输入的速度至少是scanf输入速度的两倍多。 int Scan() { int res = 0, ch, flag = 0; if((ch = getchar()) == '-')转载 2013-08-16 03:26:14 · 396 阅读 · 0 评论