summaryrefslogtreecommitdiff
path: root/CPP/cpp_book/chap5/median.h
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/cpp_book/chap5/median.h')
-rw-r--r--CPP/cpp_book/chap5/median.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/CPP/cpp_book/chap5/median.h b/CPP/cpp_book/chap5/median.h
new file mode 100644
index 0000000..f4e6580
--- /dev/null
+++ b/CPP/cpp_book/chap5/median.h
@@ -0,0 +1,8 @@
+#ifndef MEDIAN_H
+#define MEDIAN_H
+
+#include <vector>
+
+double median(std::vector<double> vec);
+
+#endif /* MEDIAN_H */