добавил bool promt, изменил imput

master
ShestovDN 2 лет назад
Родитель cbcd4a7ab7
Сommit 0d5b14e3e6

Двоичные данные
bin/Debug/unittest.exe

Двоичный файл не отображается.

@ -1,7 +1,13 @@
#include <iostream>
#include <vector>
#inclide <cmath>
#invlude <string>
#include "histogram.h"
#include "text.h"
#include <conio.h>
#include "histogram_internal.h"
#include <curl/curl.h>
#include <sstream>
#include "svg.h"
@ -14,27 +20,30 @@ size_t bin_count{};
};
Input
input_data()
input_data(istream &tin, bool promt)
{
Input in;
size_t number_count;
cin>> number_count;
if (promt)
{
cerr << "enter number count";
}
tin>> number_count;
Input in;
in.numbers.resize(number_count);
for (size_t i = 0; i < number_count; i++)
{
cin>> in.numbers[i];
in>> in.numbers[i];
}
cin >>in.bin_count;
char in.arr[bin_count];
for(int i=0; i<bin_count;i++)
if (promt)
{
cin>>in.arr[i];
cerr<<"enter bin count:";
}
in >>in.bin_count;
return in;
}

Двоичные данные
obj/Debug/histogram.o

Двоичный файл не отображается.

@ -55,6 +55,6 @@
"histogram.h"
<vector>
1685565442 c:\users\Øåñòîâ Äåíèñ\desktop\laba3\histogram.h
1686126750 c:\users\Øåñòîâ Äåíèñ\desktop\laba3\histogram.h
<vector>

Загрузка…
Отмена
Сохранить