打表打表何謂打表?
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就是用來打表的了。
無語呀,到現(xiàn)在才明白。
第一個一定是:“文件名.txt”類似的。
第二個一定是:“w”。
第三個一定是:stdout。
后后兩個無爭議。第一個隨便。
posted on 2012-04-19 18:44 More study needed. 閱讀(390) 評論(0) 收藏 舉報

浙公網(wǎng)安備 33010602011771號