Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct ServerInfo_ {
- int ID;
- enum ServerStatus status;
- char name[MAX_SERVER_NAME];
- unsigned short tcpPort;
- };
- int max_len=5;
- struct ServerInfo *srvList = (struct ServerInfo *)malloc (sizeof(struct ServerInfo));
- cout<<listServers((struct ServerInfo *)srvList, max_len);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement