2011年2月11日
摘要: 统计4句英文的每个大写字母的出现频率,并用直方图表示出来code:#include <iostream>#include <cstdio>#include <string>#include <cstring>using namespace std;int hash[30];int main(){ char s[80]; memset(hash, 0, sizeof(hash)); int maxh=0, t=4; while(t--) { cin.getline(s,80); int 阅读全文
posted @ 2011-02-11 12:22 FreeAquar 阅读(140) 评论(0) 推荐(0)