TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: PHIL OHL
from: BRUCE WEDDING
date: 1998-03-31 09:10:00
subject: Pointer

 PO> I am having a minor problem getting pointers to 
 PO> work correctly for me. I
 PO> have made A pointer something like.
 PO> void admin::raise(employee *luckyperson)
 PO> {
 PO> luckyperson->salary *= 1.75;
 PO> }
 PO> and I call the function in main.
 PO> admin1 raise(employee1);
 
If that code doesn't work, then employee1 must not be a pointer.  Do you have 
some code like this up there?
Employee *employee1;
employee1 = new Employee;
 
 
BTW: That is a nice raise :)
 
Bruce Wedding
bruce@scimisys.com
--- Maximus/2 3.01
---------------
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)

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™.