Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C language programming converts floating-point numbers in 10 into numbers in 16 and stores them in the array.
C language programming converts floating-point numbers in 10 into numbers in 16 and stores them in the array.
You can set several functions separately. Simplify the whole big problem.

For example, we convert a decimal number into a hexadecimal number, divide it by sixteen with one of the most common algorithms, and set the remainder as a function. Then reverse all the remainder to another function.

If it is still displayed, it is necessary to set up a display function, which can display each bit of hexadecimal with switch multi-branch selection statement.

Only the methods are mentioned here, and the specific procedures still depend on your own reading and writing.