How to find an element in a vector of class objects, based on one of the class members, and delete it
I have a vector
of classes. Each class has two member variables, a name (string) and time spent working (integer).
My goal is simply delete an element of an array that contains a specific name.
In an array of classes. How to find a member variable inside a class and then deleting that element? (C++)
I have a vector of classes. Each class has two member variables, a name (string) and time spent working (integer).
My goal is simply delete an element of an array that contains a specific name.