C
Chelong
hey,the follow is the text file content
========================================apple====pear==
one Lily 7 0 0 7 7
two Lily 20 20 6.6666 20 8
one Lily 0 10 2.85 4 0
two Lily 22 22 7.33326 2 5
two jenny 6 0 0 6 6
two jenny 12 0 0 12 12
three jenny 36 36 10.26 36 36
four jenny 30 30 6 30 30
four jenny 41 41 8.2 41 41
.........................................
.......................................and so on!
i want to get the result:
e.g:
Lily
one pears: 7+0
apples:7+4
two pears:8 + 5
apples:20 + 2
the jenny the same ,and some others
================================
how can i make it come true using stl?or another simple way?
waiting for ur help!
thx advance!
========================================apple====pear==
one Lily 7 0 0 7 7
two Lily 20 20 6.6666 20 8
one Lily 0 10 2.85 4 0
two Lily 22 22 7.33326 2 5
two jenny 6 0 0 6 6
two jenny 12 0 0 12 12
three jenny 36 36 10.26 36 36
four jenny 30 30 6 30 30
four jenny 41 41 8.2 41 41
.........................................
.......................................and so on!
i want to get the result:
e.g:
Lily
one pears: 7+0
apples:7+4
two pears:8 + 5
apples:20 + 2
the jenny the same ,and some others
================================
how can i make it come true using stl?or another simple way?
waiting for ur help!
thx advance!