I need to read a file and store each number (int) in a variable, when it sees or a "-" (the minus sign means that it should store the numbers from 1 to 5 (1-5)) it needs to store it into the next variable. How should I proceed?
我正在考虑使用植被,但我无法找到办法去做我想要的东西。
意见认为:
0
0
5 10
4
2 4
5-10 2 3 4 6 7-9
4 3
这些职位为十等。