Looking minimum string, IP address - solving report

Find the smallest string

topic

Thinking

Function to find the minimum time need to use a string with a strcmp and strcpy, first input first character string, the first string is assumed for the first string of the minimum min, then then the next string comparison, when the next the string matching hours min, min is equal to the string. After the final cycle of the output min.

flow chart

Core code


————————————————————————————————————————————

IP addresses

topic

Thinking

Solution of this problem we first need the IP address of the first binary into a one-dimensional array, and then every eight sum, calculated this value. The first point to note is a decimal integer output is not a ".", The judgment to be done separately output.

flow chart

Core code

Guess you like

Origin www.cnblogs.com/2317496650xcj/p/12042109.html