in new programmer and i got a problem
the problem is that i need to separate 4 digits hex number into 2 bytes(2 digits each) to two different variables, its pretty simple but i still don't know how to do it with C++
example:
lets say i got the decimal number 30,000
in hex its 7530
means the first byte is 75 and the second is 30 (hex values)
now i need to save each of the bytes on different vars, how do i do it?