Hi, I am expected to use sscanf function in a program, but I couldn't understand how it works. Can you explain it with an easy example?
Thanks
--
newbiecoder
newbiecoder
0
Junior Poster in Training
Recommended Answers
Jump to PostTake a look at:
> http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/
or
> http://www.cppreference.com/wiki/c/io/scanf (sscanf is just like scanf, with the difference that the input is read from the buffer) ...
Jump to PostIn this bold part you say the next read value will be interpreted as an integer but where is the next read value, isnt there only one read value in this code (sentence) ?
Thanks a lot!
sentence
is the string where thesscanf
function reads from, …
All 8 Replies
mvmalderen
2,072
Postaholic
newbiecoder
0
Junior Poster in Training
mvmalderen
2,072
Postaholic
newbiecoder
0
Junior Poster in Training
mvmalderen
2,072
Postaholic
newbiecoder
0
Junior Poster in Training
mvmalderen
2,072
Postaholic
newbiecoder
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.