blob: 697f3c0bd6224148f1add85f3d90ee5f381edac4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef STUDENT_INFO_H
#define STUDENT_INFO_H
#include <iostream>
#include <string>
#include <vector>
struct StudentInfo {
std::string name;
double midterm;
double final;
std::vector<double> homework;
};
bool compare_students(const StudentInfo& a, const StudentInfo& b);
std::istream& read_homework(std::istream& in, std::vector<double>& hw);
std::istream& read_student(std::istream& is, StudentInfo& s);
#endif /* STUDENT_INFO_H */
|