예제 #1
0
파일: main.cpp 프로젝트: thompw4/HWserver
bool by_major(const Student *s1, const Student *s2) {
  int m1 = std::max(convertMajor(s1->getMajor1()),
                    convertMajor(s1->getMajor2()));
  int m2 = std::max(convertMajor(s2->getMajor1()),
                    convertMajor(s2->getMajor2()));
  if (m1 == m2) {
    return by_year(s1,s2);
  } 
  return (m1 > m2);
}
예제 #2
0
void colorit_major(std::ostream &ostr, const std::string& s) {
  int m = convertMajor(s);
  ostr << "<td align=center bgcolor=";
  coloritcolor(ostr,m,19.5,17,15,11,10);
  ostr << ">" << s << "</td>";
}