Re: need help..



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


.