#include <iostream>
#include <string>
using namespace std;
const int PTY_MAX = 4; // パーティメンバーの人数
const string NAME[PTY_MAX] = { "ジアス", "マリア", "ミミ", "リン" };
const string JOB[PTY_MAX] = { "剣士", "神官", "召喚師", "忍者" };
const int LIFE[PTY_MAX] = { 700, 300, 240, 500 };

class GameCharacter {
private:
    string name;
    string job;
    int life;
public:
    void initParameter(int n);
    void putParameter();
};

int main() {
    GameCharacter member[PTY_MAX];
    for (int i = 0; i < PTY_MAX; i++) {
        cout << "--- キャラクター" << i << " ---" << endl;
        member[i].initParameter(i);
        member[i].putParameter();
    }
}

void GameCharacter::initParameter(int n) {
    name = NAME[n];
    job = JOB[n];
    life = LIFE[n];
}
void GameCharacter::putParameter() {
    cout << "名前 " << name << endl;
    cout << "職業 " << job << endl;
    cout << "体力 " << life << endl;
}
