public string getstr(string oldstr,string newstr, int num)
{
//边界条件:oldstr.length大于num
//递归结束:oldstr.length小于num
int leng = oldstr.Length;
if (leng > num)
{
newstr += oldstr.Substring(0, num) + "<br>";
return getstr(oldstr.Remove(0, num), newstr, num);
}
else
{
newstr += oldstr;
return newstr;
}
}