Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
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!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.