Home > Back-end > Cooking chicken to ask: statistics the number of binary file an ASCII. It's really difficult to
Cooking chicken to ask: statistics the number of binary file an ASCII. It's really difficult to
Time:09-17
Input a hexadecimal number two, statistics, how many bytes of the binary file a. d. at its value equals the hexadecimal number, the results must be written in the "% d \ n" format to the text file b.t xt, for example: set a. d. ats contains the following content (has been converted to hexadecimal format shows) : : 0 x01 0 x02 0 x03 0 x41 x0d x43 x42 0 0 0 0 x0a 0 XFF 0 xfe XFD 0 0 x01 0 x02 0 x03 0 x80 0 x7f 0 x0d 0 x0a Input and output sample:
Input: 01 Output: 2 Because the file has 2 0 x01,
Input: FF Output: 1 Because the file have 1 0 XFF, This how to do??????