/ * Author: knocker Completion Date: 2004.10.31 procedures: the greatest extent possible with the least amount of code to complete the program one of the hardest interpretation of the purpose of the program: Statistics keyboard input (26 letters), and type in a vertical histogram Form print statistical results. For example, input: dsdskjfuywqhjshgxgakjygfhgajhqffdw
Output: ||| | | ||| | || | ||| || | | | || ||| || | | | ||| AbcdefghijklmnopQrstuvwxyz
* / # include _ [26], c, y = 3, i; main () {IF ((i = getChar ())! = 10) i> = 'a' && i <= 'z '&& c < _ [i-'a'] &&! (c = _ [i-'a ']), i> =' a '&& i <=' z '&& c < _ [i-'a '] &&! (c = _ [i-'a']), main (); Else While (Y && c -) for (i = 0; i <26; gotoxy (i 1, y), _ [I]> = (C 1) && Putchar ('|') ,! C && gotoxy (i 1, y 1) && putchar (i 65), i );}