C++ 常用字符串分割split函数和trim函数
摘要:void split(const string &str, vector<string> &res, const char pattern) { istringstream is(str); string temp; while (getline(is, temp, pattern)) { if (
阅读全文
posted @ 2020-09-12 20:35
posted @ 2020-09-12 20:35
Powered by:
博客园
Copyright © 2025 merlinzjl
Powered by .NET 9.0 on Kubernetes