Talk About Network

Google





Programming > C - C++ Learning > initializing ar...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 4123 of 4400
Post > Topic >>

initializing array with list

by "Christian H. Kuhn" <christian.kuhn@[EMAIL PROTECTED] > Apr 20, 2008 at 08:27 PM

Me stupid.

Working:
int main()
{
  int testarray[] = { 0, 1, 2};
  return 0;
}

Not working:
class testclass
{
public:
  static const int testarray[] = { 0, 1, 2};
};


int main()
{
  testclass Testobjekt;
  return 0;
}

Why is the second example wrong? How should i do that?

TIA
Chris
 




 2 Posts in Topic:
initializing array with list
"Christian H. Kuhn&q  2008-04-20 20:27:54 
Re: initializing array with list
"sk_usenet" <  2008-04-20 12:08:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 10:08:00 PST 2009.