The C++ equivalent of C's format string [closed]
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 years ago . I have a C program that reads from keyboard, like this: scanf("%*[ \t\n]\"%[^A-Za-z]%[^\"]\"", ps1, ps2); For a better understanding of what this instruction does, let's split the format string as follows: %*[ \t\n]\" => read all spaces, tabs and newlines ( [ \t\n] ) but not store them in any