Scan Numbers among letters in a Sentence
Posted
by ZaZu
on Stack Overflow
See other posts from Stack Overflow
or by ZaZu
Published on 2010-05-11T18:20:08Z
Indexed on
2010/05/11
18:24 UTC
Read the original article
Hit count: 189
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 ?
© Stack Overflow or respective owner