Static Array in Header
-
sdfsdf schrieb:
Tut mir Leid ich weiß nicht was du von mir willst!
Es weiß auch keiner was du willst.

Vielleicht sowas:
Header:
class foo { static int myInts[99]; // ... };Implementierung:
int foo::myInts[99] = { 1, 2, 4, 5 }; //...Wenn das Array Objekte enthält, dann eben, was weiß ich, vielleicht so:
Header:class foo { static GLfloat myGLfloat[99]; // ... };Implementierung:
GLfloat foo::myGLfloat[99] = { GLfloat(9.9), GLfloat(7.7) //... oder was auch immer GLfloat() akzeptiert };
-
@pumuckle
Raser!! 
-
Danke danke!
Der Fehler lag daran, dass ich Klasse:: vergessen habe! Peinlich.