#include <iostream>
#include <string>
using namespace std;

namespace Player {
    const string ITEM[] = { "無し", "薬草", "乾パン", "干し肉" };
    string name;
    int life;
    int itm[3];
    void status();
}

void Player::status()
{
    cout << "名前 " << name << endl;
    cout << "体力 " << life << endl;
    for (int i = 0; i < 3; i++) cout << ITEM[itm[i]] << ",";
}

using namespace Player;
int main()
{
    name = "ランスロット";
    life = 10000;
    itm[0] = 1;
    itm[1] = 2;
    itm[2] = 3;
    status();
}