需要删除最后3个字符:
std::string projectName; foreach (std::string s, sampleNameVector) { projectName += s + " + "; } projectName.erase(projectName.end() - 3, projectName.end());
Copyright @ 2024 ramlife Powered by .NET 8.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster