Are there C++ equivalents of sscanf (...) functions that takes a pointer to the C++ string class as the argument?
Not that I know of, so you might either use a stringstream, or create a std::string s with the desired size and then pass &s[0] as an argument to sscanf (but then be warned about the danger of buffer overflow, plus you need to account for the null terminator).
Originally Posted by acppdummy
what's the C++ equivalent of printf to do formatted output?
Bookmarks