Cross-referencing two lists?

This is a discussion on Cross-referencing two lists? within the C++ Programming forums, part of the General Programming Boards category; Well I am working on a project and need a little push in the right way. The second link is ...

Cross-referencing two lists?

Well I am working on a project and need a little push in the right way. The second link is the file and the part that I am stuck on is in red. Any comments are welcome as long as they are constructive in some way.

you have to traverse your list and test values, then print the apropriate nodes
unless you instansiate an additional list storing students with abscenses, then you could just do a straight print of that list only.

Once the program is done, you should be able to enter people’s names and e-mail address that are in the class. From there you will enter the names of people that are present. From these two actions I need to find those who are absent. As of right now I have nothing, I have highlighted the part that I need help on in red.

xviddivxoggmp3,
Sounds good but I don't think that will work with the code I am trying to config. Thanks though!

Looks like you need to traverse your enrolled list and for each element in that list, you then need to attempt to retrieve it from the present list. If you don't find a match, then you can do an insert into your absent list.

If you were using a sorted STL container I would have just said to use the set_difference function.

"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens