Hi, I'm Xuhang Ye


CS Student / Passionate Learner / Open-Source Developer

Mastering `std::stringstream` in C++ for Easy String Manipulation

Learn how to leverage the powerful capabilities of `std::stringstream` for parsing and formatting strings in C++

Recently I have met a small tricky problem about parsing and formatting the string input “yyyy/mm/dd” in C++ programming question, and the whole solution procedure is here. To nicely solve it, I used std::stringstream, which belongs to the <sstream>  library. I used this tool to manipulate string a long time ago,... [Read More]