Is there a way to add an object to a vector via the constructor body?
So I’m new to c++ and programming in general, and in some of my assignments I need to store objects that I create in a vector and I always used this method:
So I’m new to c++ and programming in general, and in some of my assignments I need to store objects that I create in a vector and I always used this method: