Coming from Java, I'm used to built in data structure that I can quickly/easily reference that allow me to do things like add integers to a list and check to see if an integer is in the list.
Since this seems to be common, I'm hoping to see what the easy way of doing this is C++ Builder is. I'm okay with using a standard C++ library too, as long as it will work with C++ Builder.
You could use
std::vectororstd::set. Usevectorif you want to allow duplicates, use set if you don't. Searching avectorwill also be significantly slower in comparison to aset.