From: "Jimmy Myhrman" Newsgroups: comp.os.msdos.djgpp Subject: Plain C++ question about classes... Date: Thu, 25 Dec 1997 23:51:33 +0100 Organization: Algonet/Tninet Lines: 13 Message-ID: <67uo86$u$1@cubacola.tninet.se> NNTP-Posting-Host: du187-2.ppp.algonet.se To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I wonder how I can create an array of an object of a class with a constructor...hmm, did you understand that ?, look at this code instead: CImageBuffer buffer1(320,200); /* creates a 320x200 buffer */ CImageBuffer buffer_array[100](320,200); /* this thing is BAD */ the first line creates a buffer and sends the two arguments for the constructor, but the second line is illegal, because it's an array. How Do i write the second line in the right way ????????????????? /jimmy myhrman ( myhrman AT algonet DOT se )