Vector of classes

closed account (Sy0XoG1T)
I decided to leave arrays behind and get into vectors. They seem pretty simple so far but I'm having trouble understanding how to create a vector of classes.

Like how an int would be vector<int> test(20);

How would I create a vector for this class?

class _dot
{
float x, y;
};
vector<_dot> v;
closed account (Sy0XoG1T)
Now it works... I tried that before and I got complaints from my compiler. -_-

Thank you.
Topic archived. No new replies allowed.