Report problem solving - Number Encryption

Problem-solving ideas

      After entering the number, you need to select a function to remove the number of repeat number. Then sorted by the selected non-repeating numbers referred to as a sort arr, herein expressed as a function recommended techniques.

Select the encryption numbers side by side after a good sequence. The best use of the function gets when entering a number, a character gets function may be a keyboard input of a single upload to the array. The use of two nested loop

arr first outer loop with the unknown input array is fixed, then the inner loop variable is determined and set with a statement if a number of the count by the array index for recording, when the number array read

Arr same numbers and the number in the subscript of the array index to the record.

     Following the flowchart shown:

The main number is encrypted using an array of choice is the subject of refining and without repeating numbers array

 

The remaining others are very basic things, not one detail to say.

Guess you like

Origin www.cnblogs.com/Steven0928/p/12075658.html