TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JERRY COFFIN
from: DARIN MCBRIDE
date: 1997-04-24 09:41:00
subject: Pointer Arrays

 JC>     int &player = id[j].controller-1;
How does that help?  The compiler should, at the least, complain it has to 
create a temporary for the reference to refer to.
Get rid of the &.
{And, due to the complexity of the original, I'll assume it was just pure 
confusion that led to the incorrect "player" - it should be 
data[id[j]].controller-1, if I read it correctly}
 JC> pointer[data[id[j]].controller - 
 JC> 1][k[data[id[j]].controller - 1]] = id[j];
--- Maximus/2 3.01
---------------
* Origin: Tanktalus' Tower BBS (PVT) (1:342/708)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.