From 58ddc34f888c8489d93a0fafe56010353ed66df1 Mon Sep 17 00:00:00 2001 From: David Vereb Date: Tue, 10 Mar 2020 16:26:18 -0400 Subject: [PATCH] An even nicer end screen. --- main.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index 56ed5e9..552f7a4 100644 --- a/main.cpp +++ b/main.cpp @@ -116,13 +116,17 @@ int main(int argc, char *argv[]) clear(); mvprintw(middle_v - 3, middle_h - 5, "You did it!"); - mvprintw(middle_v - 1, middle_h - 10, + mvprintw(middle_v - 1, middle_h - 14, + "Questions Answered: %7d\n", + problems.size()); + mvprintw(middle_v - 0, middle_h - 8, "Time Elapsed: %02dm %02ds\n", elapsed_time / 60, elapsed_time % 60); - mvprintw(middle_v - 0, middle_h - 11, - "Questions Answered: %2d\n", - problems.size()); - mvprintw(middle_v + 2, middle_h - 8, + mvprintw(middle_v + 1, middle_h - 13, + "Time Per Question: %02dm %02ds\n", + (elapsed_time / problems.size() / 60), + (elapsed_time / problems.size() % 60)); + mvprintw(middle_v + 3, middle_h - 8, "Press Q to quit."); box(stdscr, '*', '*'); wrefresh(stdscr);