Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!linac!uwm.edu!ux1.cso.uiuc.edu!midway!news From: mcdougal@cs.uchicago.edu Newsgroups: comp.lang.c++ Subject: initialization of arrays Message-ID: <1991Apr17.223745.5788@midway.uchicago.edu> Date: 17 Apr 91 22:37:45 GMT Sender: news@midway.uchicago.edu (NewsMistress) Distribution: usa Organization: U. of Chicago AI Lab Lines: 23 Warning, question from novice: Our compiler, supposedly from AT&T, returns "Sorry, not implemented" on the following methods of initializing an array: int x[] = { 1, 2, 3 }; // found in Stroustrup and in Kernighan & Ritchie ---- int x[3] = { 1, 2, 3 }; --- int x[3]; x[] = { 1, 2, 3 }; --- Basically, nothing works except assigning the elements one by one. If someone will tell me how to do #1 as a class constructor that'll help. If people can tell me, "Yeah, that's true on our compiler, too," that'll help a little, too. Misery loves company, you know. :-) -Tom (mcdougal@cs.uchicago.edu)