书山有径勤为路>>>>>>>>

<<<<<<<<学海无涯苦作舟!

打表打表何谓打表?

View Code
#include<iostream>
using namespace std;

int main()
{
    freopen("God.txt","w", stdout);
    for(int i=0; i<10000; i++)
    {
        cout<<i<<",";
        if(i%30==0 && i!=0) cout<<endl<<endl;
    }
}

上面的freopen就是用来打表的了。

无语呀,到现在才明白。

第一个一定是:“文件名.txt”类似的。

第二个一定是:“w”。

第三个一定是:stdout。

后后两个无争议。第一个随便。

posted on 2012-04-19 18:44  More study needed.  阅读(383)  评论(0编辑  收藏  举报

导航

书山有径勤为路>>>>>>>>

<<<<<<<<学海无涯苦作舟!