From 1cb10f3ce2aa9e264c0ed761cc2ea37ee2cf270a Mon Sep 17 00:00:00 2001 From: Tomasz Golinski Date: Thu, 6 Aug 2020 21:13:40 +0200 Subject: [PATCH] Move code for printing out header html to common.h --- common.cpp | 11 +++++++++++ common.h | 1 + geofriends.cpp | 10 ++-------- geostat.cpp | 10 ++-------- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/common.cpp b/common.cpp index cfca1e8..d6203f9 100644 --- a/common.cpp +++ b/common.cpp @@ -283,6 +283,17 @@ int sum(const Caches& cc, int Cache::*ptr) { return std::accumulate(cc.begin(), cc.end(), 0, [&](const int& a, const Cache& b) { return std::move(a) + b.*ptr; }); } +void header_html() { + std::cout << "\n"; + std::cout << "\n"; + std::cout << " \n"; + std::cout << " \n"; + std::cout << " \n"; + std::cout << " Geocaching stats\n"; + std::cout << "\n"; + std::cout << "\n"; +} + void footer_html() { std::cout << "