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

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