From 62d4d98eb7f9596dfe99e4a8a7449d36a6c4fcd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F=20=D0=91=D0=BE=D0=B3=D0=B4=D0=B0?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2?= Date: Sat, 6 Nov 2021 18:45:16 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BC=D0=B5=D1=87=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=BF=D0=BE=20main.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "\320\264\320\2671_1/main.cpp" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git "a/\320\264\320\2671_1/main.cpp" "b/\320\264\320\2671_1/main.cpp" index 2048073..e338f2a 100644 --- "a/\320\264\320\2671_1/main.cpp" +++ "b/\320\264\320\2671_1/main.cpp" @@ -9,7 +9,7 @@ using namespace std; void createData1() { ofstream file("MyFile.txt"); - srand(time(NULL)); + srand(time(NULL)); //!!! Мы давно nullptr используем if (!file.is_open()) cout << "Error"; else { for (int i = 0; i < 100; i++) { @@ -23,7 +23,7 @@ void createData1() { void createData2() { vector vec(100); ofstream file("MyFile.txt"); - srand(time(NULL)); + srand(time(NULL)); //!!! Мы давно nullptr используем if (!file.is_open()) cout << "Error"; else { generate(vec.begin(), vec.end(), []() {return rand() % 101 - 50; }); -- GitLab