摘要:
#include <algorithm> std::reverse template <class BidirectionalIterator> void reverse (BidirectionalIterator first, BidirectionalIterator last); Rever 阅读全文
posted @ 2016-08-09 14:44
maxandhchen
阅读(323)
评论(0)
推荐(0)
摘要:
伪代码思路: 第一步:检测输入字符串是否为空字符串; if(str.empty()) return 0; 第二步: 检索有效输入: int i=0; while(str[i]==' '&&str[i]!='\0') i++; 循环后i所在的位置即为有效字符所在的位置。 if(str[i]=='\0' 阅读全文
posted @ 2016-08-09 09:46
maxandhchen
阅读(497)
评论(0)
推荐(0)
浙公网安备 33010602011771号