Scan Numbers among letters in a Sentence
- by ZaZu
Hello,
I have a pretty easy question. (using C)
In a sentence such as
In this document, there are 345 words and 6 figures
How can I scan 345 and 6 while ignoring all that is in between ?
I tried fscanf(FILE *pointer,"%d %d",&words,&figs);
But it only gets the first value ...
What am I doing wrong ?