Original Post
I've added structs to my vector using push_back(), and now I want to access the struct inside the vector. I've been trying: vector[0].struct.var; but that format doesn't let me access the struct inside. I'm guessing I'm going to have to assign the reference of the vector's element to a pointer of the same datatype to access it? Like:
struct stuff { yada; };
vector<stuff> vecStuff;
....
vecStuff.push_back(stuff_object);
stuff newStuff;
newStuff = vecStuff[0];
Just wondering if there was a way to access the members of the struct inside the vector.