About Store Forum Documentation Contact



Post Reply 
problem with the class constructor "Map"
Author Message
Babulesnik Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #2
RE: problem with the class constructor "Map"
Problem solved)
11-27-2011 10:09 PM
Find all posts by this user Quote this message in a reply
Post Reply