Some people believe you should forget about arrays when first starting with C++ and instead learn about vectors. Yes, I know, "vector" is a scary sounding word, and the syntax can be intimidating, but they are much easier to use than arrays. Here is a short lesson:
but I have no idea how arrays work yet, and on top of that, I don't know how to get a specific character in a character string.
1) Declaring a vector:
You declare the type of the things you plan on storing in the vector between the angled brackets. Then, you follow that with a variable name. Don't forget to #include <vector>.
using namespace std;
2) Adding an element to a vector:
That says to add the integer 3 to the end of the vector. A vector will automatically grow in size as you add more elements. That is why vectors are easier to use than arrays. Arrays have a fixed size.
3) Displaying the contents of a vector:
You can get the number of elements in a vector at any time by calling its size() function. To access the elements of a vector, you use brackets with the index position of the element. The elements of a vector start at index position 0. If you write:
for(int i=0; i < myVector.size(); ++i)
and the vector has no elements in it, then myVector is 12, and myVector is 32, and myVector is -5.