コード例 #1
0
ファイル: x_rayer.cpp プロジェクト: dz3/CS53-Final-Project
// DESC: will charge patient for use of x-ray machine
// PRE: patient must have a money member variable
// POST: cost_per_use will be subtracted from patient.money, returns
//       nothing
void x_rayer::charge_patient(patient & user)
{
  user.pay_out(m_cost);
  return;
}
コード例 #2
0
ファイル: x_rayer.cpp プロジェクト: louman347/CompSci2014
void x_rayer::charge_patient(patient & p) const
{
  p.pay_out(m_cost_per_use);
  return;
}
コード例 #3
0
void organ_donor::charge_patient(patient & user)
{
  user.pay_out(m_cost);
  return;
}