摘要 |
<P>PROBLEM TO BE SOLVED: To provide a character string sort which corresponds even to a blank or lower-case alphabetic characters (a to z). <P>SOLUTION: Firstly, arrays for input, output and sort are declared, and numerical values are made to correspond to alphabets ranging from "a" to "z" with numbers ranging from 1 to 26 in an ascending order. Alphabetic characters are input to a left side textbox, and the character string is substituted for the array for input, and data input to the textbox are converted into numbers in the order of alphabets. Then, the input alphabets are sorted, and the sorted data are converted into data for output of a textbox 2, and substituted for the array for output, and finally output to a right side textbox. <P>COPYRIGHT: (C)2012,JPO&INPIT |