summaryrefslogtreecommitdiff
path: root/CPP/cpp_book/chap6/grade.h
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/cpp_book/chap6/grade.h')
-rw-r--r--CPP/cpp_book/chap6/grade.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/CPP/cpp_book/chap6/grade.h b/CPP/cpp_book/chap6/grade.h
new file mode 100644
index 0000000..7cd73d1
--- /dev/null
+++ b/CPP/cpp_book/chap6/grade.h
@@ -0,0 +1,11 @@
+#ifndef GRADE_H
+#define GRADE_H
+
+#include <vector>
+#include "student_info.h"
+
+double grade(double midterm, double final, double homework);
+double grade(double midterm, double final, const std::vector<double>& hw);
+double grade(const StudentInfo& s);
+
+#endif /* GRADE_H */