数组注意事项

struct _PlayerInfo
{
int UID;
short sex; //0男 1女
int score;
char playerName[40];
short nameLen;
};

注意不要写成char *playerName[40];

GameRooms *shmaddress[50];

这样写是因为里面存的的确是GameRooms的地址。所以不要漏加*

原文地址:https://www.cnblogs.com/vanishfan/p/2852439.html