#include <iostream>

// Studentクラスの定義
class Student {
  private:
    int score;  // 得点を保持するメンバー変数
  public:
    // コンストラクタのプロトタイプ宣言
    Student(int score);
    // 得点のゲッターのプロトタイプ宣言
    int getScore();
    // 得点のセッターのプロトタイプ宣言
    void setScore(int score);
};

// コンストラクタの処理内容
Student::Student(int score) {
  this->score = score;  // 氏名を保持するメンバー変数に値を設定する
}

// 得点のゲッターの処理内容
int Student::getScore() {
  return this->score;
}

// 得点のセッターの処理内容
void Student::setScore(int score) {
  this->score = score;
}

// Studentクラスを使うプログラム
int main() {
  // クラスのインスタンスを生成する
  Student suzuki(0);
  // ゲッターでメンバー変数の値を読み出す
  std::cout << "suzukiの得点 = " << suzuki.getScore() << std::endl;
  // セッターでメンバー変数に値を書き込む
  suzuki.setScore(100);
  // ゲッターでメンバー変数の値を読み出す
  std::cout << "suzukiの得点 = " << suzuki.getScore() << std::endl;
  return 0;
}