Hi all!

If I make a class like this:
class MyClass
{
   private:
        char * id;
        char * name;
   public:
        MyClass();
        char * getId();
        ..
        ..
}
..and then I want to create an array with objects from this class, how do I 
do?

if I write
    MyClass my_class [];
    my_class=MyClass();

..it doesn´t work. I get the compile error:
incompatible types in assignment of `MyClass' to `MyClass[0]'

Thanks in advance!!
Maria





_________________________________________________________________
Hämta MSN Explorer kostnadsfritt på http://explorer.msn.se


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to