1 回答

書旅
TA貢獻(xiàn)238條經(jīng)驗(yàn) 獲得超101個(gè)贊
while(true)//國標(biāo)2312??
????{??
????????infile>>temp[0];??
????????if(infile.eof())?break;??
????????if?(temp[0]>=0xB0)//GB2312下的漢字,最小是0XB0??
????????{??
? ? ? ? ? ??
? ????????????s=""; ?
? ? ? ? ? ? ?continue;
????????}??
????????else//非漢字字符不統(tǒng)計(jì)??
????????{ ?
????????????s+=temp[0];??
????????????infile>>temp[1];??
????????????s+=temp[1]; ?
????????}??
????????wordcount[s]++;??
????????s="";??
????} ?
- 1 回答
- 0 關(guān)注
- 1291 瀏覽
添加回答
舉報(bào)
0/150
提交
取消