C
Creighton Hogg
Hi,
I'm having a problem that's driving me nuts right now.
I wanted to represent data as a
vector<vector<vector<unsigned short> > >
Now I've been having alot of trouble initializing and
accessing elements for that type.
I can't seem to initialize like blah(10,10,10) to make each
vector length 10, so instead I did blah(10,(10,10)) but even
though that compiles I get runtime errors if I ever do
something likeblah.at(i).at(j).at(k), no matter what the
values of i j and k.
Is there a clean way to do what I want it to do or should I
just not try it this way?
I'm having a problem that's driving me nuts right now.
I wanted to represent data as a
vector<vector<vector<unsigned short> > >
Now I've been having alot of trouble initializing and
accessing elements for that type.
I can't seem to initialize like blah(10,10,10) to make each
vector length 10, so instead I did blah(10,(10,10)) but even
though that compiles I get runtime errors if I ever do
something likeblah.at(i).at(j).at(k), no matter what the
values of i j and k.
Is there a clean way to do what I want it to do or should I
just not try it this way?