Hi, I'm having trouble figuring how to search for a specific element of a class in a list.
I saw some examples of find() but they only show how to search for a string or an int.
Another thing is modifying elements of a class. So let's say I have this:
class A{
int ID;
string name;
}
So if I make a list full of A objects how do I use find() to search for the object that has the ID 'X' so I would be able to change the name to 'Y'? Is there an easy solution or should I make my own list?