Still, I would use the stack for the container classes... And the if in the for scope is not necessary, also use "++k".
No, but whith a list it's much shorter.2. I have done much of coding with QVector, how do i delete the item before removing it?
is it like, i have to call these two statements to do that?
delete vector.at(i) ;
vector.remove(i) ;
Depends on your needs. With QList you can do hardly something wrong. But there are also LIFO LILO containers. Yust choose the the one, which fits your accessing needs best.3. Can i use QList instead of QVector, as i need a Dynamic Array to store my elements, or is there any other better container for this problem?






Reply With Quote
Bookmarks