This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: A Little Help


Let me clear out some vestigial junk and clarify a few things:

elevbox = malloc(numcols * BOXHEIGHT * sizeof(int));

elevboxrow = malloc(numcols * BOXHEIGHT * sizeof(int));


memset(elevrow, 0, numcols * sizeof(int));

Not necessary and certainly not in this form.


/* You can use / and % (div and mod) to help determine which box to stuff things in. */

Probably not necessary. Just put directly into column and row. Reduction to medians or means is the only place where the row of boxes truly matters.


Eric


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]