#include #include #include #include "text.h" using namespace std; const size_t SCREEN_WIDTH = 80; const size_t MAX_ASTERISK = SCREEN_WIDTH - 3 - 1; void show_histogram_text(const std::vector bins, size_t bin_count, const std::vector numbers,size_t max_count) { size_t procent=100; for(size_t i = 0;i<(bin_count-1);i++){ double number = numbers.size(); double proc=(bins[i]/number)*100; procent -=round(proc); printf("%3d:", bins[i]); for(size_t j = 0;j