String sorting problem-solving report

String sorting

topic

Ideas and flow chart

1. Define an array for storing STR [. 5] [80]
2. Input string
3. string selection sort in ascending order
4. Title output format
Flowchart:

Core code

problem

1.scanf in the transfer to the read character string str [i] can
not be directly assigning an array to another array 2. When sorting, the function to call strcpy

Guess you like

Origin www.cnblogs.com/ananChampion/p/12045555.html