稳定版本备份

This commit is contained in:
2025-08-25 15:53:05 +08:00
parent 53178ddd9a
commit aae60af637
53 changed files with 1197 additions and 1612 deletions
+16
View File
@@ -0,0 +1,16 @@
#include <string>
#include <vector>
static std::vector<std::string> split(const std::string& s, char delimiter) {
std::vector<std::string> tokens;
std::string token;
std::stringstream ss(s); // 创建字符串流
// 使用 std::getline 从字符串流中读取以分隔符分隔的子字符串
while (std::getline(ss, token, delimiter)) {
tokens.push_back(token);
}
return tokens;
}
#pragma once