使用递归算法使字符串s倒序。
摘要:
使用递归算法使字符串s倒序。string daoxu(string &str){ static string news; static int length=str.length(); length--; if(length<0){ str.swap(news); return str; }else 阅读全文
posted @ 2022-07-16 10:31 zwhyh 阅读(157) 评论(0) 推荐(0)
浙公网安备 33010602011771号