code: updated to 5
Этот коммит содержится в:
18
text.cpp
Обычный файл
18
text.cpp
Обычный файл
@@ -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;
|
||||
}
|
||||
Ссылка в новой задаче
Block a user