>>2Yes. In C++, the only difference between a struct and a function is that a struct's members are public by default, if I recall right.