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.
 
 
 
 

33 rivejä
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;
}