Babulesnik
Member
|
problem with the class constructor "Map"
When compiling an error: "'StructListRooms' : no appropriate default constructor available"
*h
Code:
struct StructListRooms
{
StructRoom Room;
Map<Str,StructRoom>mapRooms;
bool addRoom (Str &NameRoom , Byte &MaxPlayers , Flt &Bet , StructPlayer &LinkPlayer );
bool addPlayer(Str &NameRoom , StructPlayer &LinkPlayer );
int findRoom (Str &NameRoom , Byte &ReturnTotalPlayers , Byte &ReturnMaxPLayers );
}extern ListRooms;
*.cpp
Code:
StructListRooms ListRooms;
static Bool Create(StructRoom &Room , Str &key , Ptr user) {return true;}
Map<Str,StructRoom>mapRooms(Create,Compare,NULL);
|
|
11-27-2011 08:13 PM |
|
Babulesnik
Member
|
RE: problem with the class constructor "Map"
Problem solved)
|
|
11-27-2011 10:09 PM |
|