C language classic algorithm Daquan (very full algorithm C language implementation)