i have a file of numbers like that : XXX are unknow numbers
页: 1
YY YYYY YYY YYYY
YYYY YYY YY YYY
ZZZ
UUU UU UUUU UUUUUU UU UUUU
UU UUU UUUU U
the number of numbers per lines and numbers of "line number" are unknowed. I just know how many "blocks" there is. (where a block is a number followed by several number lines)
My aims are: - extracts 页: 1and fill a tab with it - tokenize the "line number" into number and file my matrice with it
What i have yet. i read a line, but don t know if it s a single number or a line of numbers.
I tried with sscanf, to determine if there is just one number or several, but it s not conclusive. I checked also the value of ret but sscanf always return the number 1. So it s impossible to determine if there is more than just one number.
ret = sscanf(line, "%d");
我不想使用PCRE。 我说,它有可能用标准的图书馆,但如何? 从果园中可以如何区分两种界线?
感谢和担忧我的办公室: