I'm learning C++, having mostly programmed in Java.
I want to know what similar constructs C++ has for:
1. Vector (ie java.util.Vector)
In particular, I'm looking for a linear data structure which can be variable in length. I'm not concerned about heterogeneous elements, at least for the moment. I'm hoping I don't have to create and manage my own linked list.
What is used to organize files into their respective groups?
e.g. I might have a package called plants, which contains the packages tree, grass, and flower, which, respectively contain Oak.java, Fescue.java and Daisy.java
3. structs vs classes
In Java, I might create a class, let's go with Oak, which has members:
In C++, I can do the same, or I can use a struct.
Why would I choose on or the other?