C
Chelong
hey
now i have a problem,for me a c++ beginner.so i need ur help?
here i have a text file from the copy of excel data,like this:
=======================================================apple====pear===
First XXZHYY3A(Lily) 0 20 8 0 0 7 XXZHYY3A£¨Lily£© 8 0 0 8 8 8
XXZHYY3A£¨huang£© 7 0 0 7 7 5 Senco XXZHYY3B(huang) 22 22 3.652 22
22 4 XXZHYY11A£¨cheng£© 70¸ö 60 9.96 7 70
Third XSJ14B(huang) 20 20 6.6666 20 20 5 XSJ14B(Lily) 23 23 7.66659 23
23 8 XXZHYY6(huang) 26 30 9.9999 26 26 9
.......................and it is a big txt file.
======================================================================
first,i want to make it like this:
=======================================================apple====pear===
First XXZHYY3A(Lily) 0 20 8 0 0 7
First XXZHYY3A£¨Lily£© 8 0 0 8 8 8
First XXZHYY3A£¨huang£© 7 0 0 7 7 5 Senco XXZHYY3B(huang) 22 22
3.652 22 22 4
Senco XXZHYY11A£¨cheng£© 70¸ö 60 9.96 7 70
Third XSJ14B(huang) 20 20 6.6666 20 20 5
Third XSJ14B(Lily) 23 23 7.66659 23 23 8
Third XXZHYY6(Lily) 26 30 9.9999 26 26 9
.......................and it is a big txt file.
======================================================================
how can i implica it usin STL,or another fast way,is it vector can
implic it?
and the second,i want to select the line that include First &&Lily ,
Lily && Third ,and so on ,
and then i want to get ,for example:
Lily first apple = 0 + 8 pear = 7 + 8
Lily Third apple = 23 + 26 pear =8 + 9
Do u know what i mean?
waiting for ur help !
thanks advan!
now i have a problem,for me a c++ beginner.so i need ur help?
here i have a text file from the copy of excel data,like this:
=======================================================apple====pear===
First XXZHYY3A(Lily) 0 20 8 0 0 7 XXZHYY3A£¨Lily£© 8 0 0 8 8 8
XXZHYY3A£¨huang£© 7 0 0 7 7 5 Senco XXZHYY3B(huang) 22 22 3.652 22
22 4 XXZHYY11A£¨cheng£© 70¸ö 60 9.96 7 70
Third XSJ14B(huang) 20 20 6.6666 20 20 5 XSJ14B(Lily) 23 23 7.66659 23
23 8 XXZHYY6(huang) 26 30 9.9999 26 26 9
.......................and it is a big txt file.
======================================================================
first,i want to make it like this:
=======================================================apple====pear===
First XXZHYY3A(Lily) 0 20 8 0 0 7
First XXZHYY3A£¨Lily£© 8 0 0 8 8 8
First XXZHYY3A£¨huang£© 7 0 0 7 7 5 Senco XXZHYY3B(huang) 22 22
3.652 22 22 4
Senco XXZHYY11A£¨cheng£© 70¸ö 60 9.96 7 70
Third XSJ14B(huang) 20 20 6.6666 20 20 5
Third XSJ14B(Lily) 23 23 7.66659 23 23 8
Third XXZHYY6(Lily) 26 30 9.9999 26 26 9
.......................and it is a big txt file.
======================================================================
how can i implica it usin STL,or another fast way,is it vector can
implic it?
and the second,i want to select the line that include First &&Lily ,
Lily && Third ,and so on ,
and then i want to get ,for example:
Lily first apple = 0 + 8 pear = 7 + 8
Lily Third apple = 23 + 26 pear =8 + 9
Do u know what i mean?
waiting for ur help !
thanks advan!