算法笔记(七)字符串处理

回文串spa 题述:字符串 读入一串字符串,判断是否为回文串;“回文串”是一个正反都同样的在字符串;get 样例:string 输入:123454321it 输出:YESio 答案:di #include <cstdio> #include <cstring> const int max=256; bool HW(char str[]) { int len=0; len = strlen(str)
相关文章
相关标签/搜索