Article View: alt.comp.lang.learn.c-c++
Article #149Re: C++ problem - help
From: Eric Tetz
Date: Mon, 05 Apr 1999 00:00
Date: Mon, 05 Apr 1999 00:00
13 lines
886 bytes
886 bytes
bool IsPalindrome (char * string)
{
for (char * first = string,
char * last = string + strlen (string) - 1;
first <= last;
first++, last--)
{
if (*first != *last)
return false;
}
return true;
}
Technical Details
Message-ID:
<01be800c$9ae4c780$5f064fce@TETZ>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7eatvr$p1g$1@barcode.tesco.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,61f8664269971e91 X-Google-Attributes: gid109fba,public X-Google-Thread: 10d4ba,61f8664269971e91 X-Google-Attributes: gid10d4ba,public X-Google-Thread: 114592,61f8664269971e91 X-Google-Attributes: gid114592,public From: "Eric Tetz" <etetz@accolade.com> Subject: Re: C++ problem - help Date: 1999/04/05 Message-ID: <01be800c$9ae4c780$5f064fce@TETZ> X-Deja-AN: 462997839 X-NNTP-Posting-Host: 206.79.6.95 References: <7eatvr$p1g$1@barcode.tesco.net> Organization: news://newsread.exodus.net : Crossing the Invisible Line Newsgroups: alt.comp.lang.learn.c-c++,att.lang.c++,comp.lang.c++