Well, i have a vector that stores objects of my class named 'Tools':
vercotr<Tools>myvect
that has lets say 5 objects saved in it... But now i want to make a method that makes a subvector from lets say 2nd (start) to 4th (end/finish) element in myvect and returns that newly created subvector.
returnSubvect(2,4); that is returning: subvect
Can anyone explain me how to do this? -Was strugling with this for some time now, but i cant get it to work.
vercotr<Tools>myvect
that has lets say 5 objects saved in it... But now i want to make a method that makes a subvector from lets say 2nd (start) to 4th (end/finish) element in myvect and returns that newly created subvector.
returnSubvect(2,4); that is returning: subvect
Can anyone explain me how to do this? -Was strugling with this for some time now, but i cant get it to work.