Re: need help..
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Thu, 31 Mar 2005 11:32:36 GMT
Martin Ambuhl wrote:
> slickn_sly wrote:
>
.... snip ...
>
>> {
>> if( line = 2 )
> ^^^^^^^^^^^^
> This, and all subsequent conditions like it, are almost certainly
> a mistake. '=' is the assignment operator; '==' is the equality
> comparison operatior.
Which you can easily avoid at all times by simply cultivating the
habit of writing:
if (2 == line) ...
i.e. put the constant first.
--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
.
- Follow-Ups:
- Re: need help..
- From: Nils Weller
- Re: need help..
- From: Peteris Krumins
- Re: need help..
- From: Allan Bruce
- Re: need help..
- References:
- need help..
- From: slickn_sly
- Re: need help..
- From: Martin Ambuhl
- need help..
- Prev by Date: Re: What is memory pool
- Next by Date: Re: What is memory pool
- Previous by thread: Re: need help..
- Next by thread: Re: need help..
- Index(es):