Re: how i can do a array of various data types with classes?
If you are using C++, there are 3 chooses:
1) you can write the class by using template.
2) you can use Standard Template Library
3) If you are using Visual C++, you can try MFC collection classes
For the "different types into one array", perhaps you could use inheritance and create and "array" of (pointers to) the base class?
Be carefull with memory leaks ;-) C++ doesn't have a garbage collector by default!