How to work with vectors

How to work with vectors in Arduino? Is there any working example?

Do you mean one dimensional arrays, or magnitude and direction pairs?

One dimensional arrays.

I would like something like this

array.add(5); //add new member
array.unset(4); //delete member with index 4

Dynamic arrays on a RAM limited processor are not a great idea.
What are you trying to do?

It's hard to explain. I can done done it with regular arrays, but it would be much easier with vectors. Is it good idea to build my own class?

It may be possible to use STL, but I've never tried it on an Arduino.

NIck Gammon has notes about STL on AVR/Arduino - Gammon Forum : Programming : STL : STL for microprocessors -

Where would we be without him :wink: