[C/C++笔面试]判断字符串是不是回文

Posted zxnsirius

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[C/C++笔面试]判断字符串是不是回文相关的知识,希望对你有一定的参考价值。

/*********************************************************
-  Copyright (C): 2016
-  File name    : level.c
-  Author       : - Zhaoxinan -
-  Date         : 2016年08月28日 星期日 11时14分51秒
-  Description  : 

*  *******************************************************/
#include <stdio.h>
#include <string.h>

int islevel(const char *ptr)

    int i;
    int found = 1;    //1表示是回文,0表示不是
    if (ptr == NULL)  //有效性检测
    
        return -1;
    
    //获取字符串长度
    

以上是关于[C/C++笔面试]判断字符串是不是回文的主要内容,如果未能解决你的问题,请参考以下文章