There is a standard vector header.
Code:
#include <vector>
int main()
{
std::vector<int> myInt;
myInt.push_back(10); //add ten to the end of the vector
return 0;
}
As far as declaring an array they just look like this
Code:
int main()
{
int myArray[10]; //makes an array of 10 ints
return 0;
}
Arrays cannot be resized after declaring their size you can use memory allocation with pointers though works just like an array.
Code:
int main()
{
int *myPointer;
myPointer = new array[10]; //this can change it's not stuck at 10
delete [] myPointer; //make sure you clean up after memory allocation
return 0;
}