Родитель
ee77595a0a
Сommit
8708b5e7e0
@ -0,0 +1,18 @@
|
|||||||
|
#include <math.h>
|
||||||
|
#include <iostream>
|
||||||
|
#include <conio.h>
|
||||||
|
#include <vector>
|
||||||
|
#include "text.h"
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
void show_histogramm(vector<size_t>bins)
|
||||||
|
{
|
||||||
|
for (size_t i = 0; i < bins.size(); i++)
|
||||||
|
{
|
||||||
|
cout << bins[i] << "|";
|
||||||
|
for (size_t j = 0; j < bins[i]; j++)
|
||||||
|
cout << "*";
|
||||||
|
cout << endl;
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
Загрузка…
Ссылка в новой задаче