Before now I've been learning to code at school (vectors, char, two-dimentional arrays, nothing too fancy) and have been coding in C++, in CodeBlocks. A month ago I started studying from C++ Primer. I'm now at vector types and I have it all confused. When I used to use vectors I never included any other library and I declared the vector something like this:
#include <iostream>
int main ()
{
int v[10];
return 0;
}
Now a vector is defined in a much more complicated way , using the vector
library, mentioning the element type in the definition and so on.
I was just wondering how is there such a big difference in subject I thought fairly easy. What's really the matter with these vectors?