|
|
- #include <iostream>
-
- #include <cstring>
- #include <math.h>
-
- #include "cpp-base64/base64.h"
- #include "cpp-base64/base64.cpp"
-
- #include "class/monster.hpp"
- #include "class/player.hpp"
-
- Player* createNewPlayer()
- {
- char name[16];
-
- printf("Input character name (MAX 15): ");
- scanf("%15s", name);
-
- return new Player(name);
- }
-
- int main(int argc, char const *argv[])
- {
- char name[16];
-
- printf("Input name: ");
- scanf("%15s", name);
-
- Player *player = new Player(name);
-
- printf("Created new player with name %s at %p\n", name, (void *)player);
- return 0;
- }
|