my problem stmt is as follows

my input to the program is text file which contains records like

10 20 30 40 70
20 30 70
30 40 10 20
29 70
80 90 20 30 40
40 45 65 10 20 80
45 65 20

like this and i want remove all subset transaction from the output file i.e. output.txt

output file shd look like
10 20 30 40 70
29 70
80 90 20 30 40
40 45 65 10 20 80

over here the records like
20 30 70
30 40 10 20
45 65 20
these records are subset of other records so remove it from file
I want source code in c/c++

worm regards

Ashwini Mane

jonsca commented: Don't bump old threads -1
Nick Evan commented: no effort, hijack -2