C++ adding similar objects into std::list but only wanting one output with the cumulative data
This probably has a really simple fix but I cant for the life of me see it. I have two input files one with courses and one with students. For students it parses data and adds the object into a list. I’m trying to get it so that when I go to output the student objects with similar data from the list (ex: Doe,John,1233485,ART Doe,John,1233485,MATH) it doesn’t output each object, but one object with cumulative data. (I don’t know if I’m explaining it the best sorry-)