rt,有一个问题,就是缓冲区的那个数组开的大小和输入规模有关吗?有关的话如何计算应该开多少?
const int LEN=1048576; /*char BUF[LEN],*Pin,*Pin_last,PUF[LEN],*Pout=PUF,*Pout_last=PUF+LEN-1;//指BUF和PUF两个数组 #define gc() Pin==Pin_last&&(Pin_last=(Pin=BUF)+fread(BUF,1,LEN,stdin),Pin==Pin_last)?EOF:*Pin++ inline void pc(char x){ if(Pout==Pout_last) fwrite(PUF,1,Pout-PUF,stdout),Pout=PUF; *Pout++=x; }*/