第7周 C語言程序設計(新2版) 練習1-13 打印輸入單詞長度的直方圖(水平與垂直)

一、水平直方圖數組 問題及代碼:學習 /*打印輸入單詞長度的直方圖*/ #include<stdio.h> #define MAXHIST 15 //最大直方圖 #define MAXWORD 11 //單詞最大長度 #define IN 1 //單詞內 #define OUT 0 //單詞外 int main() { int c,i,nc,state; int len;
相關文章
相關標籤/搜索