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)
|