From 95d602670c99db7c1066d9e41dacefe3203e1189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=D0=BE=D0=B2=D0=B0=20=D0=AE?= =?UTF-8?q?=D0=BB=D0=B8=D1=8F?= Date: Sat, 6 Nov 2021 23:14:27 +0300 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=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=D0=B0?= 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 e338f2a..3c32508 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)); //!!! Мы давно nullptr используем + srand(time(nullptr)); //!!! Мы давно 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)); //!!! Мы давно nullptr используем + srand(time(nullptr)); //!!! Мы давно nullptr используем if (!file.is_open()) cout << "Error"; else { generate(vec.begin(), vec.end(), []() {return rand() % 101 - 50; }); -- GitLab