[comp.lang.c++] initialization of arrays

mcdougal@cs.uchicago.edu (04/18/91)

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)