|
-
May 4th, 2000, 03:02 AM
#1
Thread Starter
Frenzied Member
Hmm, I seem to be the guy asking all the questions on this forum. I apreciate all the answers.
I seem to remember somewhere that you could use typedef to make a new variable type that could contain one of two variables. so If I made a type OptionalSignedLong that could hold either a signed or unsigned long I could go
OptionalSignedLong MyNumber = 10;
MyNumber = (signed long)-10; /* MyNum Stores a
signed long*/
MyNumber = (unsigned long) 10000; /* MyNum Stores an
unsigned long*/
Is this possible or am i just imaganing things.
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
|