amro 的 站内主页
2009
07-28
07-28
题目:
编写一个程序,打印输入中单词的直方图。
[CODE]
[amro@localhost C]$ vim pt1.13.c
1 #include <stdio.h>
2
3 #define MAXHIST 15 /*max length of histogram*/
4 #define MAXWORD 11 /*max length of....
Read More >
[CODE]
1 #include <stdio.h>
2 main()
3
4 {
5 int c, i, nwhite, nother;
6 int ndigit[10];
7
8 nwhite = nother = 0;
9 for (i - 0; i < 10; ++i)
10 ndigit[i] =....
Read More >
这个是C程序设计语言 书上的课后习题。
题目:编写一个程序,以每行一个单词的形式打印其输入。[CODE] 1 #include <stdio.h> 2 3 #define IN 1 &nbs....
Read More >
2008
01-27
01-27
题目要求:统计各个数字,空白符以及所有其他字符出现的次数。[CODE]#include <stdio.h>main(){ int c, i, nwhite, nother; int ndigit[10]; nwhit....
Read More >