using STL

Hello
I have am a beginner to c++ i do have some experience in c#
so pls be patient guys....
I need to create list/vector of objects or any other some kind of "array"
that will have objects inside.
first i do not know the size it's changing dynamically in any time when user want's another thing is there an option if i want to delete an object how can i find it without running in loop on the array is there some sort of build in method inside stl library???
Thx!!!!!!!!!
I have am a beginner to c++ i do have some experience in c#
so pls be patient guys....

So, you must have some experience looking up things in documentation.


I need to create list/vector of objects or any other some kind of "array"
that will have objects inside.

http://www.cplusplus.com/reference/vector/vector/
http://www.cplusplus.com/reference/list/list/

or

http://en.cppreference.com/w/cpp/container/vector
http://en.cppreference.com/w/cpp/container/list


first i do not know the size it's changing dynamically in any time when user want's

Maybe search the documentation for 'size'


another thing is there an option if i want to delete an object how can i find it without running in loop on the array is there some sort of build in method inside stl library???

http://www.cplusplus.com/reference/algorithm/find/ or
http://en.cppreference.com/w/cpp/algorithm/find

Show your attempt please.
Thanks cire your articles did helped me!
Topic archived. No new replies allowed.