sscanf needs to take its input from a string..
what is the meaning of this
how it differs from a normal scanfCode:sscanf(%s%s%s,s1,s2,s3);
??
Printable View
sscanf needs to take its input from a string..
what is the meaning of this
how it differs from a normal scanfCode:sscanf(%s%s%s,s1,s2,s3);
??
sscanf reads from a string instead of stdin. That's meaningless, because %s%s%s isn't a defined identifier - it's meant to be in a format string. And you don't specify a source either. Did you try compiling that? If so, what did it do? Why do you think it did that? When you type "sscanf" into Google, what do you see? How can this help you?
C++ Reference [C++ Reference] is nice for this kind of questions.