i need to write a c++ function that could read in the values of a text file,
but in the text file we need to eliminate duplicate values;
for example we may have values like ;;;;
this is a text file, and it contains the above students, there first name and surnames
sam ; merdock
hill ; firewood
sara ; nikerman
sam ; shena
jillia // there is another word like this, but this is not the first name, the first name should always precede with the sign " ; "
kills
robert ; wood
hint :: v should use the " ; " sign to identify the first name (coz first name will precede with the mark " ; ")
now what i want it to do is, to display values as follows
hill firewood
sara nikerman
sam shena
jillia
kills
merlock // this has come from the above name "sam merdock", since sam is common v write the surnames of students as this
robert wood
i should write this on to another file as well,,
i hope i explained it well .. some one plzz help me with the code :) :)