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