Array initializing .cpp an .h files
Posted: Tue Aug 26, 2008 5:08 pm
Hi all,
I want to create an array of nodes in a class of my application.
Into the .h file of the class I have:
and into the constructor into the .cpp file:
I get this compile error:
I have no {ctor} into my code. If I comment the line into the .h and into the .cpp the aplication run ok.
If I execute the application without initializing the array, the application breaks when it acced to the class.
How should it be created?
Thanks
I want to create an array of nodes in a class of my application.
Into the .h file of the class I have:
Code: Select all
core::array<scene::ISceneNode*> arrayNodes;
Code: Select all
this->arrayNodes = new core::array<scene::ISceneNode*>::array(10);
I get this compile error:
Code: Select all
1>h:\apli\src\apli.cpp(24) : error C2061: syntax error : identifier '{ctor}'
If I execute the application without initializing the array, the application breaks when it acced to the class.
How should it be created?
Thanks