Re: [CODE][NEWBIE][EXP_TABLE]Need some help with my code

From: Thomas Arp (t_arp@mail1.stofanet.dk)
Date: 01/19/01


From: "Lewis, Jason" <JLewis@birch.com>
> following but cannot make it work.
You're not giving us much to work on here..

>   float class_exp_mod[NUM_CLASSES]= {
>           /*       Cle  Thi  War  Ber  Pal  A-P  Ran  Mon  Bar  Dru  Ill
> Inv  Enc  Con  Nec  Ass  Sha     */
>  /*modifier*/     {1.8, 2.1, 2.4, 2.3, 2.0, 2.0, 1.8, 1.9, 1.9, 1.8, 1.5,
> 1.5, 1.6, 1.5, 1.7, 2.0, 1.9},
> };
You''ve got a couple of {}'s too much here..
class_exp_mod[0]={1.8, 2.1, ... , 1.9} -which doesn't make much sense..
class_exp_mod[1-17]= ?? - at least _I_ don't know what they are - probably
zero or unreferenced or something..

> I made all the changes it says to in the original snippet and I am thinking
> it may have to do with my array. Can anyone just glancing at this see any
> problems with it?
Yep - you were right.. it was the array.. of course I haven't tested to see
if it works now, but now you know where to look.

Welcor of BA

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/03/01 PST