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

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