随笔分类 -  字符串_笔试题

摘要:题目:求最大连续递增数字串(如“ads3sl456789DF3456ld345AA”中的“456789”。答:#include "stdafx.h"#include <iostream>#include <string>using namespace std;//求最大连续递增数字串string FindMaxIncreNumberSeq(string str){ if ("" == str || str.length() <= 0) { return NULL; } int maxlength = 0; int start 阅读全文
posted @ 2012-09-06 19:39 venow 阅读(1859) 评论(0) 推荐(1)