06 2007 档案

用选择法对给定的10个字符串按小到大的顺序排序

posted @ 2007-06-14 18:06 heidaizx 阅读(918) | 评论 (0)  编辑

编制程序:从用户输入的几个字符串中找出最小的字符串

posted @ 2007-06-14 17:44 heidaizx 阅读(239) | 评论 (0)  编辑

编制程序将两个有序数组a和b归并成一个有序数组.例如a={1,3,5}.b={2,4,6},c={1,2,3,4,5,6}

posted @ 2007-06-14 17:12 heidaizx 阅读(815) | 评论 (0)  编辑

编制程序统计输入的字符串中各种小写字母的个数

posted @ 2007-06-14 16:49 heidaizx 阅读(522) | 评论 (0)  编辑

确定字符串的长度,不用头文件string.h

posted @ 2007-06-14 09:53 heidaizx 阅读(130) | 评论 (0)  编辑

复制字符串,不用头文件string.h

posted @ 2007-06-14 09:47 heidaizx 阅读(211) | 评论 (0)  编辑

乒乓球比赛问题:两个乒乓球队进行比赛,各出3人,甲队为A,B,C三人,乙队为x,y,z三人,列出所有的对战情况

posted @ 2007-06-11 17:23 heidaizx 阅读(7715) | 评论 (3)  编辑

编制程序分档统计某班30名学生,某门考试成绩即分别统计0-9分,10-19分,20-29分,30-39分,40-49分,50-59分,60-69分,70-79分,80-89分,90-99分,100分的人数

posted @ 2007-06-11 16:56 heidaizx 阅读(1200) | 评论 (0)  编辑

用递归法求解菲波那切数列:

posted @ 2007-06-11 16:27 heidaizx 阅读(633) | 评论 (0)  编辑

简单的插入排序:

posted @ 2007-06-10 16:57 heidaizx 阅读(184) | 评论 (0)  编辑

二分检索法:

posted @ 2007-06-07 20:52 heidaizx 阅读(173) | 评论 (0)  编辑

约瑟夫环问题

posted @ 2007-06-07 19:59 heidaizx 阅读(246) | 评论 (0)  编辑

编制程序,从给定的5个字符串中,找出最小的字符

posted @ 2007-06-03 18:17 heidaizx 阅读(301) | 评论 (0)  编辑

判断输入的字符串是否是回文.

posted @ 2007-06-03 17:33 heidaizx 阅读(780) | 评论 (0)  编辑

选择排序法:

posted @ 2007-06-03 17:18 heidaizx 阅读(174) | 评论 (0)  编辑