main.cpp 547 B

1234567891011121314151617181920212223
  1. #include <iostream>
  2. #include <stdlib.h>
  3. #include "game.h"
  4. #include "fester.h"
  5. int main (){
  6. struct client * storage;
  7. // does something dumb for Msft
  8. __STARTUP();
  9. // get a server socket from the Operating system
  10. int sock = setup();
  11. // allocate memory for storage for the life of the application
  12. if(NULL == (storage = allocateBunnies(sock))) {
  13. fprintf(stderr, "not enough memory for program to run\n");
  14. return 0;
  15. }
  16. fprintf (stdout,"Qwixx initiated!\n");
  17. Game newgame;
  18. newgame.addPlayer("itsMe");
  19. newgame.send();
  20. }