TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: PHIL OHL
from: BRUCE WEDDING
date: 1998-04-02 12:44:00
subject: Pointer

-> you have some code like this up there?
-> Employee *employee1;
-> employee1 = new Employee;
 PO> Hmmm i created the object automatically with something like
 PO> employee employee1;
 PO> So is it necessary to create the object manually with the pointer?
 
You don't have to create it manually if you don't wish to, but if you are 
going to pass a pointer to the object, you have to get it from somewhere. As 
it stands, you will have to pass the address of the object, not the object. 
 
Bruce
--- 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™.