25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
582 B

#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;
}