#include "text.h" #include #include #include using namespace std; void show_histogram_text(vector bins, size_t bin_count) { for (size_t i = 0; i < bin_count; i++) { if (bins[i] < 100) { cout<< " "; } if (bins[i] < 10) { cout<< " "; } cout<< bins[i]<<"|"; for (size_t j = 0; j < bins[i]; j++) { cout<< "*"; } cout<< "\n"; } }