E
eb
I have this working code :
foo.h
/* nothing */
foo.cpp
...
std::vector<std::vector<T *> > my_T(board_size,board_size) ;
for (i=0; i<board_size; i++)
for (j=0; j<board_size; j++)
{
my_T[j] = new T ;
my_T[j]->do_something_with_my_T()
}
....
I'd like do do the same with :
foo.h
std::vector<std::vector<T *> > my_T
foo.cpp
???? -> pass the size to my_T and fill it with T
Any idea ?
google did not help me there ...
(sorry for the inappropriate vocabulary, I'm not a coder in real life).
foo.h
/* nothing */
foo.cpp
...
std::vector<std::vector<T *> > my_T(board_size,board_size) ;
for (i=0; i<board_size; i++)
for (j=0; j<board_size; j++)
{
my_T[j] = new T ;
my_T[j]->do_something_with_my_T()
}
....
I'd like do do the same with :
foo.h
std::vector<std::vector<T *> > my_T
foo.cpp
???? -> pass the size to my_T and fill it with T
Any idea ?
google did not help me there ...
(sorry for the inappropriate vocabulary, I'm not a coder in real life).