Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!yale!cs.yale.edu!omtzigt-theo From: omtzigt-theo@CS.YALE.EDU (Erwinus Theodorus Leonardus Omtzigt (Theo)) Newsgroups: comp.lang.c++ Subject: using new to allocate an array of objects Message-ID: <26597@cs.yale.edu> Date: 9 Oct 90 17:19:21 GMT Sender: news@cs.yale.edu Distribution: usa Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158 Lines: 19 Nntp-Posting-Host: topos.systemsz.cs.yale.edu Can anyone help this novice? I am trying to allocate an array of a user defined class along the lines of allocating a, say, char array. So, I try to mimic char *string = new char[15]; with TimeSlot *TimingWheel = new TimeSlot[TimingWheelSize]; The compiler, however, complaints about an illegal assignment; TimeSlot * = TimeSlot What am I doing wrong? Theo -- InterNet: omtzigt-theo@cs.yale.edu mail: Becton Center, 15 Prospect Str Phone: (203) 432 - 4261 Yale University, Dept. of EE