阅读背景:

执行split()后如何在数组中存储值?

来源:互联网 

I have a txt file called fractions.txt which includes some fractions. I don't know the size of the data. I need to split the numerator and denominator and make two arrays for them. For example, 6/7 and 5/4 are in the fractions.txt. I need two arrays like a[] and b[]. Then a[0]=6, a[1]=5, b[0]=7, and b[1]=4. How to do it?I have a txt file called fractions.txt which in




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: