You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
582 B

пре 6 година
  1. #include <iostream>
  2. #include <cstring>
  3. #include <math.h>
  4. #include "cpp-base64/base64.h"
  5. #include "cpp-base64/base64.cpp"
  6. #include "class/monster.hpp"
  7. #include "class/player.hpp"
  8. Player* createNewPlayer()
  9. {
  10. char name[16];
  11. printf("Input character name (MAX 15): ");
  12. scanf("%15s", name);
  13. return new Player(name);
  14. }
  15. int main(int argc, char const *argv[])
  16. {
  17. char name[16];
  18. printf("Input name: ");
  19. scanf("%15s", name);
  20. Player *player = new Player(name);
  21. printf("Created new player with name %s at %p\n", name, (void *)player);
  22. return 0;
  23. }