🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: char array compare

#302
From: Victor Bazarov
Date: Fri, 25 Jan 2002 17:32
10 lines
1545 bytes
"EL" <lameddie@yahoo.com> wrote...
> How can i compare a char array from defined structure with input char?
> I can't get the expected result from the following coding. Pls help!

Either use strcmp() (for char[]) or switch to using std::string
and use '=='.

Victor
--
Please remove capital A's from my address when replying by mail
Technical Details
Message-ID: <rEg48.293$497.10592@sea-read.news.verio.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!iad-peer.news.verio.net!news.verio.net!sea-read.news.verio.net.POSTED!not-for-mail
References: <a2s339$ngo3@imsp212.netvigator.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f8d38,70272e41ccb8f8b6
X-Google-Attributes: gidf8d38,public
X-Google-Thread: 114592,70272e41ccb8f8b6
X-Google-Attributes: gid114592,public
X-Google-Thread: 109fba,70272e41ccb8f8b6
X-Google-Attributes: gid109fba,public
X-Google-ArrivalTime: 2002-01-25 09:31:47 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!iad-peer.news.verio.net!news.verio.net!sea-read.news.verio.net.POSTED!not-for-mail
From: "Victor Bazarov" <vAbazarov@dAnai.com>
Newsgroups: alt.comp.lang.learn.c-c++,borland.public.cpp.language,comp.lang.c++
References: <a2s339$ngo3@imsp212.netvigator.com>
Subject: Re: char array compare
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <rEg48.293$497.10592@sea-read.news.verio.net>
Date: Fri, 25 Jan 2002 17:32:07 GMT
NNTP-Posting-Host: 206.14.93.98
X-Complaints-To: abuse@verio.net
X-Trace: sea-read.news.verio.net 1011979927 206.14.93.98 (Fri, 25 Jan 2002 17:32:07 GMT)
NNTP-Posting-Date: Fri, 25 Jan 2002 17:32:07 GMT
Organization: Verio