I have a vector that takes in class values of a class called Bug which stores a mass and number of legs for each instance. I'm having trouble using the push_back function, and suspect it's just a syntax issue, but can't figure out exactly what I'm doing wrong. I am trying to add 3 more values into the end of the vector. Here is my partial code:
std::vector<Bug> bugs(5); //vector definition
bugs.push_back(3);