On 4/13/07, Henry Rich <[EMAIL PROTECTED]> wrote:

> BTW Did you begin to feel impatient or uncomfortable when
> reading and trying to
> comprehend the c examples in that page?  :)

I sure felt uncomfortable writing them.  If anybody has
better ideas I'd like to hear them.

The examples are fine. One thing that stuck out in my mind is that the
array billrate is a rank1 as opposed to rank 2 array. You might think
that an employee has a different billing rate depending on which
client he is servicing. But if that becomes the case, then
hours_worked becomes rank 3: hours_worked[nemp][nclients][31]

Also emp_client should be indexed by nclients, not nemp. You must have
an employee for every client, but not a client for every employee. And
I would rename emp_client as emp4client because that is what it is:
the employee for a client.



But other than that, it seems like a fine example.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to