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

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

2011年9月19日

映射在编程中的应用

摘要: 1.题目:判断断一个由a-z这26个字符组成的字符串中哪个字符出现的次数最多。#include<stdio.h>#include "string.h"int main(){ int n, Case[26], j, max; char str[1001]; scanf("%d", &n); for(int i=0; i<n; i++) { scanf("%s", str); memset(Case, 0, sizeof(Case)); for(j=0; j<strlen(str); j++) Case[s 阅读全文

posted @ 2011-09-19 22:23 More study needed. 阅读(552) 评论(0) 推荐(0) 编辑

导航

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

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