摘要:
一般的对于需要删除字符串开始和结尾的空格的代码,经常为Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1#includeiostream2#includestring3usingnamespacestd;45voidmain()6{7stringstrTest="Hello,world.";89strTest.erase(0,strTest.find_first_not_of(''));10cout"["strTest"]" 阅读全文