G
Gernot Frisch
I need this: (basically because I want to read a structure from disk
and then fix big/little endian problems for certain members.
class ST
{
int i;
float f;
double d;
};
int main()
{
ST st;
for each member in st
{
select (member.type)
{
case int: ...
}
}
}
What's the best way to implement this?
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com
and then fix big/little endian problems for certain members.
class ST
{
int i;
float f;
double d;
};
int main()
{
ST st;
for each member in st
{
select (member.type)
{
case int: ...
}
}
}
What's the best way to implement this?
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com