encoding unsigned int

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!
Er... your question doesn't really make sense. An unsigned int is a 32-bit integer.

Topic archived. No new replies allowed.