-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, 12 Jan 2004 15:17:40 -0500 (EST)
Trey Gruel
looking at the full code, i don't see why bill.stock is an array. It's not. struct BillLine { StockItem stock; It is a single element. bill.stock = stock[item]; should be a simple structure copy. Actually, structure copies are bad things in C++. All structures are classes, complete with constructors and destructors. I wonder if the value of item is >= NUM_ITEMS, and what he is really seeing is a bounds error.
Or, as I mentioned earlier, his intent may be to simply use a pointer.
In his code he is passing structures as arguments to functions.
Also I noticed that my static cast has a typo:
bill.stock = *