Right?
vector <GLfloat*> ppp;
for (int g=0; g < ....; g++) {
GLfloat* position = new GLfloat[4];
for (int i=0; i<4; i++) {
position[i] = ch.toInt(); // split a string as "1543"
}
ppp.push_back(position);
}
for( std::vector<GLfloat*>::iterator i = ppp.begin(); i != ppp.end(); ++i ) {
delete [] *i;
}
ppp.clear();
vector <GLfloat*> ppp;
for (int g=0; g < ....; g++) {
GLfloat* position = new GLfloat[4];
for (int i=0; i<4; i++) {
position[i] = ch.toInt(); // split a string as "1543"
}
ppp.push_back(position);
}
for( std::vector<GLfloat*>::iterator i = ppp.begin(); i != ppp.end(); ++i ) {
delete [] *i;
}
ppp.clear();
To copy to clipboard, switch view to plain text mode
and how obtain value of fist element array of first element vector?? thanks
Bookmarks