2013年7月21日

C程序实现快速从文件输入和输出到文件

摘要: #include int main(){ freopen("in.txt", "r", stdin); freopen("out.txt", "w", stdout); float a,b=0; for (;scanf("%f",&a)!=EOF;) b+=a; printf("$%.2f\n", b/12); fprintf(stderr, "Over"); fclose(stdin); fclose(stdout); return 0;} 阅读全文

posted @ 2013-07-21 22:47 Sunny_NUAA 阅读(381) 评论(0) 推荐(1)

导航