From: Forsberg Sakari Newsgroups: comp.os.msdos.djgpp,sfnet.atk.ohjelmointi Subject: Pointer to class? (C++) Followup-To: comp.os.msdos.djgpp Date: 16 Oct 1999 18:15:55 GMT Organization: Tampere University of Technology Lines: 27 Distribution: sfnet Message-ID: <7uafcr$98f$1@baker.cc.tut.fi> NNTP-Posting-Host: lehtori.cc.tut.fi X-Trace: baker.cc.tut.fi 940097755 9487 130.230.10.20 (16 Oct 1999 18:15:55 GMT) NNTP-Posting-Date: 16 Oct 1999 18:15:55 GMT User-Agent: tin/pre-1.4-981225 ("Volcane") (UNIX) (OSF1/V4.0 (alpha)) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi! I have an class X. I have made many object which are of type X. for example X object1; X object2; X object3; ... I'd like to declare an array of pointers that point to those objects. so I do X *array_of_pointers[300]; How I connect those pointers to those objects? array_of_pointers[0] = &object1; array_of_pointers[1] = &object2; array_of_pointers[2] = &object3; don't work... ** Sakari Forsberg zacu AT cc DOT tut DOT fi ** ** Information: finger zacu AT assari DOT cc DOT tut DOT fi **