Unions in C++

Started by
30 comments, last by sab3156 20 years ago
Alright I've got a question about taking the Union of a set of numbers. What I mean by that is say I have two unions,
union math a
{
int 2k
}
union math b
{
int 2k+1
}
where union a holds even ints and union b holds odd ints, is there anyway I could combine the two? what I really want to do is take the union of the unions.
Or should I just use vectors? Vectors sound a lot more dynamic while Unions sound down right dynamice (there members may not be but what they hold are).
If that made sense plz give me a ring back
Thanks


[edited by - Angelic Fury on April 19, 2004 3:41:51 PM]
Advertisement
Angelic, please don''t dredge up years-old posts to post your own question in. Start a new thread instead.

"Sneftel is correct, if rather vulgar." --Flarelocke

This topic is closed to new replies.

Advertisement