主题:本人学的不好,麻烦大家帮我编一下这个程序
台站 四川(内江 56083);这是第一个文件名称为1.txt
v01000 V04001 V04002 V04003 V13201
56038,1960,10,1,98,
56038,1960,10,2,115,
56038,1960,10,3,18,
56038,1960,10,4,60,
56038,1960,10,5,20,
56038,1960,10,6,32700,
56038,1960,10,7,121,
56038,1960,10,8,22,
56038,1960,10,9,12,
56038,1960,10,10,2,
56038,1960,10,11,20,
56038,1960,10,12,60,
56038,1960,10,13,8,
56038,1960,10,14,32700,
56038,1960,10,15,25,
56038,1960,10,16,6,
56038,1960,10,17,32700,
56038,1960,10,18,22,
56038,1960,10,19,32700,
56038,1960,10,20,0,
56038,1960,10,21,0,
56038,1960,10,22,32700,
56038,1960,10,23,17,
56038,1960,10,24,0,
56038,1960,10,25,0,
56038,1960,10,26,0,
56038,1960,10,27,32700,
56038,1960,10,28,32700,
56038,1960,10,29,0,
56038,1960,10,30,32700,
56038,1960,10,31,0,这是部分第二个文件叫做2.txt,32700当做0算,我需要得到一个将五天的数据相加的程序,并且输出在一行里面。谢谢大家了
v01000 V04001 V04002 V04003 V13201
56038,1960,10,1,98,
56038,1960,10,2,115,
56038,1960,10,3,18,
56038,1960,10,4,60,
56038,1960,10,5,20,
56038,1960,10,6,32700,
56038,1960,10,7,121,
56038,1960,10,8,22,
56038,1960,10,9,12,
56038,1960,10,10,2,
56038,1960,10,11,20,
56038,1960,10,12,60,
56038,1960,10,13,8,
56038,1960,10,14,32700,
56038,1960,10,15,25,
56038,1960,10,16,6,
56038,1960,10,17,32700,
56038,1960,10,18,22,
56038,1960,10,19,32700,
56038,1960,10,20,0,
56038,1960,10,21,0,
56038,1960,10,22,32700,
56038,1960,10,23,17,
56038,1960,10,24,0,
56038,1960,10,25,0,
56038,1960,10,26,0,
56038,1960,10,27,32700,
56038,1960,10,28,32700,
56038,1960,10,29,0,
56038,1960,10,30,32700,
56038,1960,10,31,0,这是部分第二个文件叫做2.txt,32700当做0算,我需要得到一个将五天的数据相加的程序,并且输出在一行里面。谢谢大家了