#include #include "counter_box_view.h" counter_box_view::counter_box_view(model* what_I_watch, char for_box, char* file_name) : view(what_I_watch), my_box_char(for_box), my_target_file(file_name) { } void counter_box_view::update() { for (int i = 0; i < 20; i++) my_target_file << my_box_char; my_target_file << endl; for (int i = 0; i < 5; i++) my_target_file << ' '; my_target_file << get_model()->value() << endl; for (int i = 0; i < 20; i++) my_target_file << my_box_char; my_target_file << endl << endl << endl; }