![]() |
Array of class
Hi
I've got a class Code:
class wbElement Could somebody help? Thanks in advance Marcin |
Re: Array of class
Simply:
Code:
wbElement the_array[5]; And remember google is your friend if you got some problem like this :) |
Re: Array of class
it doesn't let me.
/home/marcin/proj/test/main.cpp:79: undefined reference to `wbElement::wbElement()' |
Re: Array of class
Geee! I havn't made the constructor ;)
Now I know why I got that error |
Re: Array of class
You've declared the constructor, now you have to define it.
Code:
wbElement::wbElement() |
All times are GMT. The time now is 22:00. |
vBulletin® Version 3.8.8