hi, I need to write a program in c++ to encode an unsigned int to a 16-bit and 32-bit integer and I do not know how to go about that. Would anyone who has written such a program be so kind to post some sample code that I can run and try to understand how it works. thanks!