[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem (oh no!)



Wille Huuskonen wrote:
> 
> I have no idea why this doesn't work, but I'm angry :-):
> 
> for(carnum=0;carnum<8;carnum++)
>   for(y=0;y<carsize[carnum*2];y++)
>     for(x=0;x<carsize[carnum*1];x++)
>       car[x+(y*carsize[carnum*1])][carnum]=
> sprites[x+xoffset+(y+yoffset)*spri\tewidth];
                                   ^^^
                                   Look here.
 
> It says:
> invalid operands to binary *
> So what's the matter?

Divide is '/' not '\' ....geez....can this thread go off to
C programming 101?  It really doesn't belong on this list.

-- 
Steve Baker                  http://web2.airmail.net/sjbaker1
sjbaker1@airmail.net (home)  http://www.woodsoup.org/~sbaker
sjbaker@hti.com      (work)