Got this csv file of my jump logbook and wish to sort within each block (Jump Record), so that intructor is listed first, student second and optional cameraman last.
Current they are written in various order.
Was thinking of reading and assigning each line of the block into vars and then printing using the blank line as a loop contron. Am I on the right track?
Would prefer solution help in C++ (little bit of exp. and a compiler setup), but am flexi and looking to really get into the nuts and bolt of any reccommended language this summer. Possible Python or any one with a good book intro to CompSci.
Any advice & ref much appreciated!
first col is role: 1,2,3.
role(1,2,3),date (yyymmdd), aircraft-liftnumber, name
role 1 is a tandem instructor,
role 2 is a student,
role 3 freefall camera (optional)
1,20100124,C206WR-L1,MAC PETE
2,20100124,C206WR-L1,HOWARD STEPH
3,20100124,C206WR-L1,JONES DAVE
,,,
2,20100124,C206WR-L3,ALLSOP BEX
1,20100124,C206WR-L3,MAC PETE
3,20100124,C206WR-L3,JONES DAVE
,,,
1,20100124,C206WR-L2,MAC PETE
3,20100124,C206WR-L2,LAUER FINCH
2,20100124,C206WR-L2,JONES DAVE
,,,
1,20100124,C206WR-L4,MAC PETE
3,20100124,C206WR-L4,LAUER FINCH
2,20100124,C206WR-L4,JONES DAVE
,,,
2,20100124,C206WR-L4,SMITH JOHN
1,20100124,C206WR-L4,MAC PETE
,,,
2,20100124,C206WR-L5,BROWN CLAIRE
3,20100124,C206WR-L5,JONES DAVE
1,20100124,C206WR-L5,MAC PETE
No comments:
Post a Comment