Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. struct ServerInfo_ {
  2. int ID;
  3. enum ServerStatus status;
  4. char name[MAX_SERVER_NAME];
  5. unsigned short tcpPort;
  6. };
  7. int max_len=5;
  8.  
  9.  
  10.  
  11.  
  12.  
  13. struct ServerInfo *srvList = (struct ServerInfo *)malloc (sizeof(struct ServerInfo));
  14. cout<<listServers((struct ServerInfo *)srvList, max_len);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement