🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #150

Re: C++ problem - help

#150
From: Eric Tetz
Date: Mon, 05 Apr 1999 00:00
13 lines
1038 bytes
Manfred Knemeyer wrote
> bool IsPalindrome (char * string)  {
>   char * first = string,
>   char * last = string + strlen (string) ;
>   while (first < last)  {
>       if (*first++ != *--last)  {
>          return false;
>       }
>    }
>  return true;
> }

I much prefer your version.
Technical Details
Message-ID: <01be8021$7e89f8c0$5f064fce@TETZ>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7eatvr$p1g$1@barcode.tesco.net> <01be800c$9ae4c780$5f064fce@TETZ> <7ebfjg$q4s@dfw-ixnews6.ix.netcom.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d4ba,61f8664269971e91
X-Google-Attributes: gid10d4ba,public
X-Google-Thread: 114592,61f8664269971e91
X-Google-Attributes: gid114592,public
X-Google-Thread: 109fba,61f8664269971e91
X-Google-Attributes: gid109fba,public
From: "Eric Tetz" <etetz@accolade.com>
Subject: Re: C++ problem - help
Date: 1999/04/05
Message-ID: <01be8021$7e89f8c0$5f064fce@TETZ>
X-Deja-AN: 463044570
X-NNTP-Posting-Host: 206.79.6.95
References: <7eatvr$p1g$1@barcode.tesco.net> <01be800c$9ae4c780$5f064fce@TETZ> <7ebfjg$q4s@dfw-ixnews6.ix.netcom.com>
Organization: news://newsread.exodus.net : Crossing the Invisible Line
Newsgroups: alt.comp.lang.learn.c-c++,att.lang.c++,comp.lang.c++