|
-
Dec 9th, 2003, 10:21 AM
#1
Thread Starter
Junior Member
data assignment
I am using an old version of MS C++ compiler 1.5 and want to be able to assign a binary value directly to a variable. I know how to assign hex, decimal, long and octal values but not binary. For example:
unsigned char MyVal = 5;
needs to be
unsigned char MyVal = 00000101;
Thanks for any help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|