In an array of classes. How to find a member variable inside a class and then deleting that element? (C++)
Advertisements 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. I know I cannot use the find() algorithim, so I’m trying with the find_if() algorithim. I’m have tried making… Read More In an array of classes. How to find a member variable inside a class and then deleting that element? (C++)