title: C++ Palindrome Bool Function (Using Pointer)
body: <p>How to create a Palindrome function in C++? I'm using 2 functions types(bool and void). 
  Here is my code so far (I would really appreciate any help with this, and why my code is not working?) Thank you!  </p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cctype&gt;
  #include &lt;cstdlib&gt;
  #include &lt;string&gt;
  using namespace std;
  
  
  void reverse(char *);  
  bool isPalindrome(char *);  
  
  int main()  
  {  
      char a[10];  
      cout &lt;&lt; "string ";  
      cin.getline(a, 10);  
      if (palindrome(a))  
          cout &lt;&lt; "true";   
      else  
          cout &lt;&lt; "false";  
      return 0;  
  }  
  void reverse(char *s)  
  {  
      char *point = s;  
      int i, min;  
      for (i = 0; *point != '\0'; i++)  
          point++;  
          min = i;  
          point--;  
      for (i = min; i &gt; 0; i--)  
     {  
          cout &lt;&lt; *point--;  
     }  
  }  
  bool ispalindrome(char *s)  
  {  
      bool status;  
      char *original = s;  
      char *point = s;  
      reverse(point);        
      for (int i = 0; point != '\0'; i++)  
      {  
          if (point[i] == original[i])  
          status = true;  
          else  
          status = false;  
      }  
      return status;  
  }
  </code></pre>