师傅们好,请教一个C程序问题,谢谢
问题是这样的。
File1:
>ENSG00000179088 ENST00000315192 UFR(1..3000 3000),e1(3001..3067 67),i1(3068..20521 17454),e2(20522..20620 99),i2(20621..97293 76673),e3(97294..97362 69),i3(97363..129970 32608),e4(129971..130082 112),i4(130083..192623 62541),e5(192624..192995 372),i5(192996..196409 3414),e6(196410..197026 617),DFR(197027..200026 3000)
>ENSG00000161243 ENST00000292853 UFR(1..3000 3000),e1(3001..3056 56),i1(3057..3305 249),e2(3306..3695 390),i2(3696..4238 543),e3(4239..4350 112),i3(4351..4434 84),e4(4435..4530 96),i4(4531..8553 4023),e5(8554..8689 136),i5(8690..10004 1315),e6(10005..11534 1530),DFR(11535..14534 3000)
>ENSG00000175220 ENST00000311956 UFR(1..3000 3000),e1(3001..3020 20),i1(3021..7414 4394),e2(7415..7596 182),i2(7597..7815 219),e3(7816..7911 96),i3(7912..15310 7399),e4(15311..15398 88),i4(15399..21388 5990),e5(21389..21520 132),i5(21521..22191 671),e6(22192..22278 87),i6(22279..22461 183),e7(22462..22560 99),i7(22561..22823 263),e8(22824..22931 108),i8(22932..23007 76),e9(23008..23084 77),i9(23085..23288 204),e10(23289..23366 78),i10(23367..23794 428),e11(23795..23923 129),i11(23924..24102 179),e12(24103..24206 104),i12(24207..24345 139),e13(24346..26487 2142),DFR(26488..29487 3000)
File2:
>ENSG00000179088
Struct : 3068..20521 (intron) <=> 3203..20521 (intron)
>ENSG00000175220
Struct : 3021..7414 (intron) <=> 3025..7414 (intron)
File2中>ENSG00000179088下Struct : 3068..20521 (intron) <=> 3203..20521 (intron)中的20521与File1中>ENSG00000179088行i1(3068..20521 17454)中的20521相同,但3203与3068 不同且有一差值125。
我的目的是:把此差值通过编程求出并读到另一个文件中。因为有一万多个类似的文件,所以只能编程实现。望指教
[求助]C语言编程