develooper Front page | perl.perl6.language.subs | Postings from September 2003

Re: could u help me please?

Thread Previous
From:
Paul Johnson
Date:
September 26, 2003 12:37
Subject:
Re: could u help me please?
Message ID:
20030926171146.GD14699@pjcj.net
On Thu, Sep 25, 2003 at 09:16:43AM -0700, Shannon Francis wrote:

> i tried to build a program and have only one error but seem not to be
> able to fix it. i think it is a rather small one. i would really
> appreciate it if you help me with this situation:
>  
>  if (num1 %2 =0)
> the error is: error C2106: '=' : left operand must be l-value.
>  
> thank you very much. i await your answer.

Wow!  How did you find this list?  The last message I got here was over
two years ago.

And how did you choose this list?  Its name has little to do with your
problem.

In any case, try

    if (num1 % 2 == 0)

and look for a C list or newsgroup for any subsequent problems you might
have.

-- 
Paul Johnson - paul@pjcj.net
http://www.pjcj.net

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About