TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: PHIL OHL
from: BLAKE GAFFNEY
date: 1998-04-09 21:16:00
subject: creating objects

On the 05 Apr 98, Phil Ohl performed the most audacious feat of simultaneous 
gibbering and moaning. It was generally directed at All
 PO> cout<<"Number of players ";
 PO> cin>>> n;
 PO> for(x=0; x {
 PO> cout<<"Player Name ";
 PO> cin.getline(name,20);
 PO> /*now i want to create am object here with the name of 'name' but i
 PO> don't know how*/
You could use operator new. Or you could use an array of players.
The game players (separate from the individual players) is a solid concept, 
so maybe it should be its own class.
Looks like *another* happy ending!
 offworld@bleach.demon.co.uk   >##<
... I have a firm grip on reality. Now I can strangle it.
 >> Tag-o-Miga 1.1a - Quoted 13% - 772 tags in Taglines.txt <<
--- Spot 1.3a #1508
---------------
* Origin: None (2:442/107.7)

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