int main() {
  try {
    Student_info record;
    record.grade();
  } catch (domain_error e) {
    cout << e.what() << endl;
  }

  return 0;
}
Exemple #2
0
double grade_aux(const Student_info& s)
{
    return s.grade();
}
Exemple #3
0
bool fgrade(Student_info& s)
{
    return s.grade() < 60;
}
Exemple #4
0
int main() {
  Student_info record;
  if (record.valid()) record.grade();
  
  return 0;
}