摘要: 字符串去除行尾空格 函数 // 去除字符串末尾的换行符和空格符 function string remove_trailing_whitespace(string str); int len = str.len(); int last_valid_index = -1; // 空字符串直接返回 if 阅读全文
posted @ 2025-09-28 13:57 shiguang9870 阅读(28) 评论(0) 推荐(0)

© 博客园 · 个人博客

Powered by 博客园  ·  Theme Customized