From 8c41d0fb8b11a51f6d6b55eb7decf7812041e004 Mon Sep 17 00:00:00 2001 From: Adelya Date: Thu, 14 Nov 2024 12:09:59 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B2=D0=BE=D0=B5=20=D0=B8?= =?UTF-8?q?=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 7, 8 лаб/7/1 лаб 7/1 лаб7.sln | 31 ++ .../7/1 лаб 7/1 лаб7/1 лаб7.vcxproj | 147 +++++++ .../1 лаб7/1 лаб7.vcxproj.filters | 22 ++ 7, 8 лаб/7/1 лаб 7/1 лаб7/Source.cpp | 20 + 7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7.sln | 31 ++ .../2 лаб 7/2 лаб 7.cpp | 266 +++++++++++++ .../2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.h | 3 + .../2 лаб 7/2 лаб 7.ico | Bin 0 -> 46227 bytes .../2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.rc | Bin 0 -> 6892 bytes .../2 лаб 7/2 лаб 7.vcxproj | 160 ++++++++ .../2 лаб 7/2 лаб 7.vcxproj.filters | 49 +++ .../7/2, 3, 4 лаб 7/2 лаб 7/Resource.h | 30 ++ .../7/2, 3, 4 лаб 7/2 лаб 7/framework.h | 15 + .../7/2, 3, 4 лаб 7/2 лаб 7/small.ico | Bin 0 -> 46227 bytes .../7/2, 3, 4 лаб 7/2 лаб 7/targetver.h | 6 + .../7/5 лаб 7 2ч/5 лаб 2ч.sln | 31 ++ .../5 лаб 2ч/5 лаб 2ч.cpp | 303 +++++++++++++++ .../5 лаб 2ч/5 лаб 2ч.h | 3 + .../5 лаб 2ч/5 лаб 2ч.ico | Bin 0 -> 46227 bytes .../5 лаб 2ч/5 лаб 2ч.rc | Bin 0 -> 6908 bytes .../5 лаб 2ч/5 лаб 2ч.vcxproj | 160 ++++++++ .../5 лаб 2ч.vcxproj.filters | 49 +++ .../7/5 лаб 7 2ч/5 лаб 2ч/Resource.h | 30 ++ .../5 лаб 7 2ч/5 лаб 2ч/framework.h | 15 + .../7/5 лаб 7 2ч/5 лаб 2ч/small.ico | Bin 0 -> 46227 bytes .../5 лаб 7 2ч/5 лаб 2ч/targetver.h | 6 + 7, 8 лаб/7/5 лаб 7/5 лаб 7.sln | 31 ++ .../7/5 лаб 7/5 лаб 7/5 лаб 7.cpp | 365 ++++++++++++++++++ .../7/5 лаб 7/5 лаб 7/5 лаб 7.h | 3 + .../7/5 лаб 7/5 лаб 7/5 лаб 7.ico | Bin 0 -> 46227 bytes .../7/5 лаб 7/5 лаб 7/5 лаб 7.rc | Bin 0 -> 6892 bytes .../5 лаб 7/5 лаб 7/5 лаб 7.vcxproj | 160 ++++++++ .../5 лаб 7/5 лаб 7.vcxproj.filters | 49 +++ .../7/5 лаб 7/5 лаб 7/Resource.h | 30 ++ .../7/5 лаб 7/5 лаб 7/framework.h | 15 + 7, 8 лаб/7/5 лаб 7/5 лаб 7/small.ico | Bin 0 -> 46227 bytes .../7/5 лаб 7/5 лаб 7/targetver.h | 6 + 7, 8 лаб/8/1.1 лаб 8/1 лаб 8.sln | 31 ++ .../8/1.1 лаб 8/1 лаб 8/1 лаб 8.cpp | 206 ++++++++++ .../8/1.1 лаб 8/1 лаб 8/1 лаб 8.h | 3 + .../8/1.1 лаб 8/1 лаб 8/1 лаб 8.ico | Bin 0 -> 46227 bytes .../8/1.1 лаб 8/1 лаб 8/1 лаб 8.rc | Bin 0 -> 6882 bytes .../1 лаб 8/1 лаб 8.vcxproj | 148 +++++++ .../1 лаб 8/1 лаб 8.vcxproj.filters | 49 +++ .../8/1.1 лаб 8/1 лаб 8/Resource.h | 30 ++ .../8/1.1 лаб 8/1 лаб 8/framework.h | 15 + .../8/1.1 лаб 8/1 лаб 8/small.ico | Bin 0 -> 46227 bytes .../8/1.1 лаб 8/1 лаб 8/targetver.h | 6 + 7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8.sln | 31 ++ .../1.2 лаб 8/1.2 лаб 8.cpp | 205 ++++++++++ .../1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.h | 3 + .../1.2 лаб 8/1.2 лаб 8.ico | Bin 0 -> 46227 bytes .../1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.rc | Bin 0 -> 6910 bytes .../1.2 лаб 8/1.2 лаб 8.vcxproj | 148 +++++++ .../1.2 лаб 8/1.2 лаб 8.vcxproj.filters | 49 +++ .../8/1.2 лаб 8/1.2 лаб 8/Resource.h | 30 ++ .../8/1.2 лаб 8/1.2 лаб 8/framework.h | 15 + .../8/1.2 лаб 8/1.2 лаб 8/small.ico | Bin 0 -> 46227 bytes .../8/1.2 лаб 8/1.2 лаб 8/targetver.h | 6 + 7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8.sln | 31 ++ .../1.3 лаб 8/1.3 лаб 8.cpp | 206 ++++++++++ .../1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.h | 3 + .../1.3 лаб 8/1.3 лаб 8.ico | Bin 0 -> 46227 bytes .../1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.rc | Bin 0 -> 6910 bytes .../1.3 лаб 8/1.3 лаб 8.vcxproj | 148 +++++++ .../1.3 лаб 8/1.3 лаб 8.vcxproj.filters | 49 +++ .../8/1.3 лаб 8/1.3 лаб 8/Resource.h | 30 ++ .../8/1.3 лаб 8/1.3 лаб 8/framework.h | 15 + .../8/1.3 лаб 8/1.3 лаб 8/small.ico | Bin 0 -> 46227 bytes .../8/1.3 лаб 8/1.3 лаб 8/targetver.h | 6 + 7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8.sln | 31 ++ .../1.4 лаб 8/1.4 лаб 8.cpp | 207 ++++++++++ .../1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.h | 3 + .../1.4 лаб 8/1.4 лаб 8.ico | Bin 0 -> 46227 bytes .../1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.rc | Bin 0 -> 6910 bytes .../1.4 лаб 8/1.4 лаб 8.vcxproj | 148 +++++++ .../1.4 лаб 8/1.4 лаб 8.vcxproj.filters | 49 +++ .../8/1.4 лаб 8/1.4 лаб 8/Resource.h | 30 ++ .../8/1.4 лаб 8/1.4 лаб 8/framework.h | 15 + .../8/1.4 лаб 8/1.4 лаб 8/small.ico | Bin 0 -> 46227 bytes .../8/1.4 лаб 8/1.4 лаб 8/targetver.h | 6 + 7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8.sln | 31 ++ .../2.1 лаб 8/2.1 лаб 8.cpp | 204 ++++++++++ .../2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.h | 3 + .../2.1 лаб 8/2.1 лаб 8.ico | Bin 0 -> 46227 bytes .../2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.rc | Bin 0 -> 6910 bytes .../2.1 лаб 8/2.1 лаб 8.vcxproj | 148 +++++++ .../2.1 лаб 8/2.1 лаб 8.vcxproj.filters | 49 +++ .../8/2.1 лаб 8/2.1 лаб 8/Resource.h | 30 ++ .../8/2.1 лаб 8/2.1 лаб 8/framework.h | 15 + .../8/2.1 лаб 8/2.1 лаб 8/small.ico | Bin 0 -> 46227 bytes .../8/2.1 лаб 8/2.1 лаб 8/targetver.h | 6 + 7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8.sln | 31 ++ .../2.2 лаб 8/2.2 лаб 8.cpp | 204 ++++++++++ .../2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.h | 3 + .../2.2 лаб 8/2.2 лаб 8.ico | Bin 0 -> 46227 bytes .../2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.rc | Bin 0 -> 6910 bytes .../2.2 лаб 8/2.2 лаб 8.vcxproj | 148 +++++++ .../2.2 лаб 8/2.2 лаб 8.vcxproj.filters | 49 +++ .../8/2.2 лаб 8/2.2 лаб 8/Resource.h | 30 ++ .../8/2.2 лаб 8/2.2 лаб 8/framework.h | 15 + .../8/2.2 лаб 8/2.2 лаб 8/small.ico | Bin 0 -> 46227 bytes .../8/2.2 лаб 8/2.2 лаб 8/targetver.h | 6 + 7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8.sln | 31 ++ .../2.3 лаб 8/2.3 лаб 8.cpp | 203 ++++++++++ .../2.3 лаб 8/2.3 лаб 8.h | 3 + .../2.3 лаб 8/2.3 лаб 8.ico | Bin 0 -> 46227 bytes .../2.3 лаб 8/2.3 лаб 8.rc | Bin 0 -> 6910 bytes .../2.3 лаб 8/2.3 лаб 8.vcxproj | 148 +++++++ .../2.3 лаб 8/2.3 лаб 8.vcxproj.filters | 49 +++ .../8/2.3.1 лаб 8/2.3 лаб 8/Resource.h | 30 ++ .../8/2.3.1 лаб 8/2.3 лаб 8/framework.h | 15 + .../8/2.3.1 лаб 8/2.3 лаб 8/small.ico | Bin 0 -> 46227 bytes .../8/2.3.1 лаб 8/2.3 лаб 8/targetver.h | 6 + .../8/2.3.2 лаб 8/2.3.2 лаб 8.sln | 31 ++ .../2.3.2 лаб 8/2.3.2 лаб 8.cpp | 203 ++++++++++ .../2.3.2 лаб 8/2.3.2 лаб 8.h | 3 + .../2.3.2 лаб 8/2.3.2 лаб 8.ico | Bin 0 -> 46227 bytes .../2.3.2 лаб 8/2.3.2 лаб 8.rc | Bin 0 -> 6938 bytes .../2.3.2 лаб 8/2.3.2 лаб 8.vcxproj | 148 +++++++ .../2.3.2 лаб 8.vcxproj.filters | 49 +++ .../2.3.2 лаб 8/2.3.2 лаб 8/Resource.h | 30 ++ .../2.3.2 лаб 8/2.3.2 лаб 8/framework.h | 15 + .../8/2.3.2 лаб 8/2.3.2 лаб 8/small.ico | Bin 0 -> 46227 bytes .../2.3.2 лаб 8/2.3.2 лаб 8/targetver.h | 6 + .../8/2.3.3 лаб 8/2.3.3 лаб 8.sln | 31 ++ .../2.3.3 лаб 8/2.3.3 лаб 8.cpp | 203 ++++++++++ .../2.3.3 лаб 8/2.3.3 лаб 8.h | 3 + .../2.3.3 лаб 8/2.3.3 лаб 8.ico | Bin 0 -> 46227 bytes .../2.3.3 лаб 8/2.3.3 лаб 8.rc | Bin 0 -> 6938 bytes .../2.3.3 лаб 8/2.3.3 лаб 8.vcxproj | 148 +++++++ .../2.3.3 лаб 8.vcxproj.filters | 49 +++ .../2.3.3 лаб 8/2.3.3 лаб 8/Resource.h | 30 ++ .../2.3.3 лаб 8/2.3.3 лаб 8/framework.h | 15 + .../8/2.3.3 лаб 8/2.3.3 лаб 8/small.ico | Bin 0 -> 46227 bytes .../2.3.3 лаб 8/2.3.3 лаб 8/targetver.h | 6 + 7, 8 лаб/8/4 лаб 8/4 лаб 8.sln | 31 ++ .../8/4 лаб 8/4 лаб 8/4 лаб 8.cpp | 200 ++++++++++ .../8/4 лаб 8/4 лаб 8/4 лаб 8.h | 3 + .../8/4 лаб 8/4 лаб 8/4 лаб 8.ico | Bin 0 -> 46227 bytes .../8/4 лаб 8/4 лаб 8/4 лаб 8.rc | Bin 0 -> 6882 bytes .../4 лаб 8/4 лаб 8/4 лаб 8.vcxproj | 148 +++++++ .../4 лаб 8/4 лаб 8.vcxproj.filters | 49 +++ .../8/4 лаб 8/4 лаб 8/Resource.h | 30 ++ .../8/4 лаб 8/4 лаб 8/framework.h | 15 + 7, 8 лаб/8/4 лаб 8/4 лаб 8/small.ico | Bin 0 -> 46227 bytes .../8/4 лаб 8/4 лаб 8/targetver.h | 6 + 7, 8 лаб/8/5 лаб 8/5 лаб 8.sln | 31 ++ .../8/5 лаб 8/5 лаб 8/5 лаб 8.cpp | 206 ++++++++++ .../8/5 лаб 8/5 лаб 8/5 лаб 8.h | 3 + .../8/5 лаб 8/5 лаб 8/5 лаб 8.ico | Bin 0 -> 46227 bytes .../8/5 лаб 8/5 лаб 8/5 лаб 8.rc | Bin 0 -> 6882 bytes .../5 лаб 8/5 лаб 8/5 лаб 8.vcxproj | 148 +++++++ .../5 лаб 8/5 лаб 8.vcxproj.filters | 49 +++ .../8/5 лаб 8/5 лаб 8/Resource.h | 30 ++ .../8/5 лаб 8/5 лаб 8/framework.h | 15 + 7, 8 лаб/8/5 лаб 8/5 лаб 8/small.ico | Bin 0 -> 46227 bytes .../8/5 лаб 8/5 лаб 8/targetver.h | 6 + 7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8.sln | 31 ++ .../5.2 лаб 8/5.2 лаб 8.cpp | 207 ++++++++++ .../5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.h | 3 + .../5.2 лаб 8/5.2 лаб 8.ico | Bin 0 -> 46227 bytes .../5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.rc | Bin 0 -> 6910 bytes .../5.2 лаб 8/5.2 лаб 8.vcxproj | 148 +++++++ .../5.2 лаб 8/5.2 лаб 8.vcxproj.filters | 49 +++ .../8/5.2 лаб 8/5.2 лаб 8/Resource.h | 30 ++ .../8/5.2 лаб 8/5.2 лаб 8/framework.h | 15 + .../8/5.2 лаб 8/5.2 лаб 8/small.ico | Bin 0 -> 46227 bytes .../8/5.2 лаб 8/5.2 лаб 8/targetver.h | 6 + 7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8.sln | 31 ++ .../5.3 лаб 8/5.3 лаб 8.cpp | 204 ++++++++++ .../5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.h | 3 + .../5.3 лаб 8/5.3 лаб 8.ico | Bin 0 -> 46227 bytes .../5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.rc | Bin 0 -> 6910 bytes .../5.3 лаб 8/5.3 лаб 8.vcxproj | 148 +++++++ .../5.3 лаб 8/5.3 лаб 8.vcxproj.filters | 49 +++ .../8/5.3 лаб 8/5.3 лаб 8/Resource.h | 30 ++ .../8/5.3 лаб 8/5.3 лаб 8/framework.h | 15 + .../8/5.3 лаб 8/5.3 лаб 8/small.ico | Bin 0 -> 46227 bytes .../8/5.3 лаб 8/5.3 лаб 8/targetver.h | 6 + 7, 8 лаб/№ 1 лаб 8.png | Bin 0 -> 6343 bytes 7, 8 лаб/№ 2 лаб 8.png | Bin 0 -> 5531 bytes 7, 8 лаб/№ 3 лаб 8.png | Bin 0 -> 10093 bytes 7, 8 лаб/№ 4 лаб 8.png | Bin 0 -> 13376 bytes 9, 10 лаб/1, 2 лаб 10/1 лаб 10.sln | 31 ++ .../1 лаб 10/1 лаб 10.vcxproj | 135 +++++++ .../1 лаб 10/1 лаб 10.vcxproj.filters | 22 ++ .../1, 2 лаб 10/1 лаб 10/FileName.cpp | 66 ++++ .../1, 2, 3, 5 лаб 9/5 лаб 9.sln | 31 ++ .../5 лаб 9/5 лаб 9.vcxproj | 135 +++++++ .../5 лаб 9/5 лаб 9.vcxproj.filters | 22 ++ .../5 лаб 9/FileName.cpp | 89 +++++ 192 files changed, 8891 insertions(+) create mode 100644 7, 8 лаб/7/1 лаб 7/1 лаб7.sln create mode 100644 7, 8 лаб/7/1 лаб 7/1 лаб7/1 лаб7.vcxproj create mode 100644 7, 8 лаб/7/1 лаб 7/1 лаб7/1 лаб7.vcxproj.filters create mode 100644 7, 8 лаб/7/1 лаб 7/1 лаб7/Source.cpp create mode 100644 7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7.sln create mode 100644 7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.cpp create mode 100644 7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.h create mode 100644 7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.ico create mode 100644 7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.rc create mode 100644 7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.vcxproj create mode 100644 7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.vcxproj.filters create mode 100644 7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/Resource.h create mode 100644 7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/framework.h create mode 100644 7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/small.ico create mode 100644 7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/targetver.h create mode 100644 7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч.sln create mode 100644 7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.cpp create mode 100644 7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.h create mode 100644 7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.ico create mode 100644 7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.rc create mode 100644 7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.vcxproj create mode 100644 7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.vcxproj.filters create mode 100644 7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/Resource.h create mode 100644 7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/framework.h create mode 100644 7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/small.ico create mode 100644 7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/targetver.h create mode 100644 7, 8 лаб/7/5 лаб 7/5 лаб 7.sln create mode 100644 7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.cpp create mode 100644 7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.h create mode 100644 7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.ico create mode 100644 7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.rc create mode 100644 7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.vcxproj create mode 100644 7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.vcxproj.filters create mode 100644 7, 8 лаб/7/5 лаб 7/5 лаб 7/Resource.h create mode 100644 7, 8 лаб/7/5 лаб 7/5 лаб 7/framework.h create mode 100644 7, 8 лаб/7/5 лаб 7/5 лаб 7/small.ico create mode 100644 7, 8 лаб/7/5 лаб 7/5 лаб 7/targetver.h create mode 100644 7, 8 лаб/8/1.1 лаб 8/1 лаб 8.sln create mode 100644 7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.cpp create mode 100644 7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.h create mode 100644 7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.ico create mode 100644 7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.rc create mode 100644 7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.vcxproj create mode 100644 7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.vcxproj.filters create mode 100644 7, 8 лаб/8/1.1 лаб 8/1 лаб 8/Resource.h create mode 100644 7, 8 лаб/8/1.1 лаб 8/1 лаб 8/framework.h create mode 100644 7, 8 лаб/8/1.1 лаб 8/1 лаб 8/small.ico create mode 100644 7, 8 лаб/8/1.1 лаб 8/1 лаб 8/targetver.h create mode 100644 7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8.sln create mode 100644 7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.cpp create mode 100644 7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.h create mode 100644 7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.ico create mode 100644 7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.rc create mode 100644 7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.vcxproj create mode 100644 7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.vcxproj.filters create mode 100644 7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/Resource.h create mode 100644 7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/framework.h create mode 100644 7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/small.ico create mode 100644 7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/targetver.h create mode 100644 7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8.sln create mode 100644 7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.cpp create mode 100644 7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.h create mode 100644 7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.ico create mode 100644 7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.rc create mode 100644 7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.vcxproj create mode 100644 7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.vcxproj.filters create mode 100644 7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/Resource.h create mode 100644 7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/framework.h create mode 100644 7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/small.ico create mode 100644 7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/targetver.h create mode 100644 7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8.sln create mode 100644 7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.cpp create mode 100644 7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.h create mode 100644 7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.ico create mode 100644 7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.rc create mode 100644 7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.vcxproj create mode 100644 7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.vcxproj.filters create mode 100644 7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/Resource.h create mode 100644 7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/framework.h create mode 100644 7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/small.ico create mode 100644 7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/targetver.h create mode 100644 7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8.sln create mode 100644 7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.cpp create mode 100644 7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.h create mode 100644 7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.ico create mode 100644 7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.rc create mode 100644 7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.vcxproj create mode 100644 7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.vcxproj.filters create mode 100644 7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/Resource.h create mode 100644 7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/framework.h create mode 100644 7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/small.ico create mode 100644 7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/targetver.h create mode 100644 7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8.sln create mode 100644 7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.cpp create mode 100644 7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.h create mode 100644 7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.ico create mode 100644 7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.rc create mode 100644 7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.vcxproj create mode 100644 7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.vcxproj.filters create mode 100644 7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/Resource.h create mode 100644 7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/framework.h create mode 100644 7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/small.ico create mode 100644 7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/targetver.h create mode 100644 7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8.sln create mode 100644 7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.cpp create mode 100644 7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.h create mode 100644 7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.ico create mode 100644 7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.rc create mode 100644 7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.vcxproj create mode 100644 7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.vcxproj.filters create mode 100644 7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/Resource.h create mode 100644 7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/framework.h create mode 100644 7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/small.ico create mode 100644 7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/targetver.h create mode 100644 7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8.sln create mode 100644 7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.cpp create mode 100644 7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.h create mode 100644 7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.ico create mode 100644 7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.rc create mode 100644 7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.vcxproj create mode 100644 7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.vcxproj.filters create mode 100644 7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/Resource.h create mode 100644 7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/framework.h create mode 100644 7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/small.ico create mode 100644 7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/targetver.h create mode 100644 7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8.sln create mode 100644 7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.cpp create mode 100644 7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.h create mode 100644 7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.ico create mode 100644 7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.rc create mode 100644 7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.vcxproj create mode 100644 7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.vcxproj.filters create mode 100644 7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/Resource.h create mode 100644 7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/framework.h create mode 100644 7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/small.ico create mode 100644 7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/targetver.h create mode 100644 7, 8 лаб/8/4 лаб 8/4 лаб 8.sln create mode 100644 7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.cpp create mode 100644 7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.h create mode 100644 7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.ico create mode 100644 7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.rc create mode 100644 7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.vcxproj create mode 100644 7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.vcxproj.filters create mode 100644 7, 8 лаб/8/4 лаб 8/4 лаб 8/Resource.h create mode 100644 7, 8 лаб/8/4 лаб 8/4 лаб 8/framework.h create mode 100644 7, 8 лаб/8/4 лаб 8/4 лаб 8/small.ico create mode 100644 7, 8 лаб/8/4 лаб 8/4 лаб 8/targetver.h create mode 100644 7, 8 лаб/8/5 лаб 8/5 лаб 8.sln create mode 100644 7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.cpp create mode 100644 7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.h create mode 100644 7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.ico create mode 100644 7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.rc create mode 100644 7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.vcxproj create mode 100644 7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.vcxproj.filters create mode 100644 7, 8 лаб/8/5 лаб 8/5 лаб 8/Resource.h create mode 100644 7, 8 лаб/8/5 лаб 8/5 лаб 8/framework.h create mode 100644 7, 8 лаб/8/5 лаб 8/5 лаб 8/small.ico create mode 100644 7, 8 лаб/8/5 лаб 8/5 лаб 8/targetver.h create mode 100644 7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8.sln create mode 100644 7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.cpp create mode 100644 7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.h create mode 100644 7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.ico create mode 100644 7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.rc create mode 100644 7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.vcxproj create mode 100644 7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.vcxproj.filters create mode 100644 7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/Resource.h create mode 100644 7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/framework.h create mode 100644 7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/small.ico create mode 100644 7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/targetver.h create mode 100644 7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8.sln create mode 100644 7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.cpp create mode 100644 7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.h create mode 100644 7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.ico create mode 100644 7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.rc create mode 100644 7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.vcxproj create mode 100644 7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.vcxproj.filters create mode 100644 7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/Resource.h create mode 100644 7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/framework.h create mode 100644 7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/small.ico create mode 100644 7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/targetver.h create mode 100644 7, 8 лаб/№ 1 лаб 8.png create mode 100644 7, 8 лаб/№ 2 лаб 8.png create mode 100644 7, 8 лаб/№ 3 лаб 8.png create mode 100644 7, 8 лаб/№ 4 лаб 8.png create mode 100644 9, 10 лаб/1, 2 лаб 10/1 лаб 10.sln create mode 100644 9, 10 лаб/1, 2 лаб 10/1 лаб 10/1 лаб 10.vcxproj create mode 100644 9, 10 лаб/1, 2 лаб 10/1 лаб 10/1 лаб 10.vcxproj.filters create mode 100644 9, 10 лаб/1, 2 лаб 10/1 лаб 10/FileName.cpp create mode 100644 9, 10 лаб/1, 2, 3, 5 лаб 9/5 лаб 9.sln create mode 100644 9, 10 лаб/1, 2, 3, 5 лаб 9/5 лаб 9/5 лаб 9.vcxproj create mode 100644 9, 10 лаб/1, 2, 3, 5 лаб 9/5 лаб 9/5 лаб 9.vcxproj.filters create mode 100644 9, 10 лаб/1, 2, 3, 5 лаб 9/5 лаб 9/FileName.cpp diff --git a/7, 8 лаб/7/1 лаб 7/1 лаб7.sln b/7, 8 лаб/7/1 лаб 7/1 лаб7.sln new file mode 100644 index 0000000..0bf6205 --- /dev/null +++ b/7, 8 лаб/7/1 лаб 7/1 лаб7.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.35130.168 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "1 лаб7", "1 лаб7\1 лаб7.vcxproj", "{691966D8-4D4F-4BC9-85A1-47F52D3F3605}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {691966D8-4D4F-4BC9-85A1-47F52D3F3605}.Debug|x64.ActiveCfg = Debug|x64 + {691966D8-4D4F-4BC9-85A1-47F52D3F3605}.Debug|x64.Build.0 = Debug|x64 + {691966D8-4D4F-4BC9-85A1-47F52D3F3605}.Debug|x86.ActiveCfg = Debug|Win32 + {691966D8-4D4F-4BC9-85A1-47F52D3F3605}.Debug|x86.Build.0 = Debug|Win32 + {691966D8-4D4F-4BC9-85A1-47F52D3F3605}.Release|x64.ActiveCfg = Release|x64 + {691966D8-4D4F-4BC9-85A1-47F52D3F3605}.Release|x64.Build.0 = Release|x64 + {691966D8-4D4F-4BC9-85A1-47F52D3F3605}.Release|x86.ActiveCfg = Release|Win32 + {691966D8-4D4F-4BC9-85A1-47F52D3F3605}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {582378A4-A4E9-4F79-9C00-5A45793B4257} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/7/1 лаб 7/1 лаб7/1 лаб7.vcxproj b/7, 8 лаб/7/1 лаб 7/1 лаб7/1 лаб7.vcxproj new file mode 100644 index 0000000..d39a3b9 --- /dev/null +++ b/7, 8 лаб/7/1 лаб 7/1 лаб7/1 лаб7.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {691966d8-4d4f-4bc9-85a1-47f52d3f3605} + My1лаб7 + 10.0 + + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + false + + + true + + + false + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/7/1 лаб 7/1 лаб7/1 лаб7.vcxproj.filters b/7, 8 лаб/7/1 лаб 7/1 лаб7/1 лаб7.vcxproj.filters new file mode 100644 index 0000000..ef66db6 --- /dev/null +++ b/7, 8 лаб/7/1 лаб 7/1 лаб7/1 лаб7.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Исходные файлы + + + \ No newline at end of file diff --git a/7, 8 лаб/7/1 лаб 7/1 лаб7/Source.cpp b/7, 8 лаб/7/1 лаб 7/1 лаб7/Source.cpp new file mode 100644 index 0000000..d245923 --- /dev/null +++ b/7, 8 лаб/7/1 лаб 7/1 лаб7/Source.cpp @@ -0,0 +1,20 @@ +#include +#include + +void aboutMe(){ + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf(": -11\n"); + printf(": 14.09.2024\n"); + printf(": \n"); + printf(" 1\n"); +} + +void main(){ + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + + aboutMe(); +} \ No newline at end of file diff --git a/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7.sln b/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7.sln new file mode 100644 index 0000000..12ca764 --- /dev/null +++ b/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.35130.168 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2 лаб 7", "2 лаб 7\2 лаб 7.vcxproj", "{D1F52101-98D9-4A8B-9084-9D8B26AD0F0A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D1F52101-98D9-4A8B-9084-9D8B26AD0F0A}.Debug|x64.ActiveCfg = Debug|x64 + {D1F52101-98D9-4A8B-9084-9D8B26AD0F0A}.Debug|x64.Build.0 = Debug|x64 + {D1F52101-98D9-4A8B-9084-9D8B26AD0F0A}.Debug|x86.ActiveCfg = Debug|Win32 + {D1F52101-98D9-4A8B-9084-9D8B26AD0F0A}.Debug|x86.Build.0 = Debug|Win32 + {D1F52101-98D9-4A8B-9084-9D8B26AD0F0A}.Release|x64.ActiveCfg = Release|x64 + {D1F52101-98D9-4A8B-9084-9D8B26AD0F0A}.Release|x64.Build.0 = Release|x64 + {D1F52101-98D9-4A8B-9084-9D8B26AD0F0A}.Release|x86.ActiveCfg = Release|Win32 + {D1F52101-98D9-4A8B-9084-9D8B26AD0F0A}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {7E906FCA-D1B9-4E79-9063-CAFF0B4153E0} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.cpp b/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.cpp new file mode 100644 index 0000000..6cd7846 --- /dev/null +++ b/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.cpp @@ -0,0 +1,266 @@ +// 2 лаб 7.cpp : Определяет точку входа для приложения. +// + +#include "framework.h" +#include "2 лаб 7.h" + +#define MAX_LOADSTRING 100 + +// Глобальные переменные: +HINSTANCE hInst; // текущий экземпляр +WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка +WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна + +// Отправить объявления функций, включенных в этот модуль кода: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + // TODO: Разместите код здесь. + + // Инициализация глобальных строк + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MY27, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Выполнить инициализацию приложения: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY27)); + + MSG msg; + + // Цикл основного сообщения: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// ФУНКЦИЯ: MyRegisterClass() +// +// ЦЕЛЬ: Регистрирует класс окна. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MY27)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY27); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// ФУНКЦИЯ: InitInstance(HINSTANCE, int) +// +// ЦЕЛЬ: Сохраняет маркер экземпляра и создает главное окно +// +// КОММЕНТАРИИ: +// +// В этой функции маркер экземпляра сохраняется в глобальной переменной, а также +// создается и выводится главное окно программы. +// +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// ЦЕЛЬ: Обрабатывает сообщения в главном окне. +// +// WM_COMMAND - обработать меню приложения +// WM_PAINT - Отрисовка главного окна +// WM_DESTROY - отправить сообщение о выходе и вернуться +// +// +//дом +void drawHome(HDC hdc) { + // Крыша + MoveToEx(hdc, 150, 350, NULL); + LineTo(hdc, 275, 250); + LineTo(hdc, 400, 350); + + // Дом + LineTo(hdc, 400, 525); + LineTo(hdc, 150, 525); + LineTo(hdc, 150, 350); + LineTo(hdc, 400, 350); + + // Окно + MoveToEx(hdc, 225, 400, NULL); + LineTo(hdc, 225, 475); + LineTo(hdc, 325, 475); + LineTo(hdc, 325, 400); + LineTo(hdc, 225, 400); + + // Рама + MoveToEx(hdc, 275, 400, NULL); + LineTo(hdc, 275, 475); + MoveToEx(hdc, 275, 425, NULL); + LineTo(hdc, 325, 425); +} +//машина +void drawCar(HDC hdc) { + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(128, 0, 0)); + SelectObject(hdc, hPen); + + HBRUSH hBrush; + hBrush = CreateSolidBrush(RGB(255, 128, 67)); + SelectObject(hdc, hBrush); + + Rectangle(hdc, 50, 200, 300, 250); + + MoveToEx(hdc, 100, 200, NULL); + LineTo(hdc, 150, 150); + LineTo(hdc, 250, 150); + LineTo(hdc, 300, 200); + + hPen = CreatePen(PS_SOLID, 7, RGB(0, 0, 128)); + SelectObject(hdc, hPen); + + hBrush = CreateHatchBrush(HS_FDIAGONAL, RGB(255, 0, 0)); + SelectObject(hdc, hBrush); + + Ellipse(hdc, 75, 225, 125, 275); + + hPen = CreatePen(PS_SOLID, 7, RGB(0, 128, 0)); + SelectObject(hdc, hPen); + + hBrush = CreateHatchBrush(HS_BDIAGONAL, RGB(0, 128, 0)); + SelectObject(hdc, hBrush); + + Ellipse(hdc, 225, 225, 275, 275); +} +// Рисование дерева из ЛР7 +void drawTree(HDC hdc) { + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(0, 200, 0)); + SelectObject(hdc, hPen); + + int x1 = 0, y1 = 250; + int x2 = 100, y2 = 250; + + do { + MoveToEx(hdc, x1, y1, NULL); + LineTo(hdc, x2, y2); + x1 += 5; + y1 -= 10; + } while (x1 <= 100); + + x1 = 100; + y1 = 50; + + do { + MoveToEx(hdc, x1, y1, NULL); + LineTo(hdc, x2, y2); + x1 += 5; + y1 += 10; + } while (x1 <= 200); +} +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + int wmId = LOWORD(wParam); + // Разобрать выбор в меню: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + // TODO: Добавьте сюда любой код прорисовки, использующий HDC... + drawHome(hdc); + drawCar(hdc); + drawTree(hdc); + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Обработчик сообщений для окна "О программе". +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} diff --git a/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.h b/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.h new file mode 100644 index 0000000..b798bf5 --- /dev/null +++ b/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.h @@ -0,0 +1,3 @@ +#pragma once + +#include "resource.h" diff --git a/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.ico b/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn&SNSS4zywZ(O!oQ5+P}ZqDo*iQywp2?H;6m*1FM+v(ik zKuPue2llH<lpzzQC0ZQ&fW!@2| zCA+sBFDXoZ&s`OJt!UeG*-;nSw@IqwS!bgXV{4brPy0l^ru(7V((LE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q?yp77Q`QL!yES5fv8d8_ELbG7b`-rU9 P`hU~ne?jT2LoELRdIsrs literal 0 HcmV?d00001 diff --git a/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.vcxproj b/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.vcxproj new file mode 100644 index 0000000..c2538cb --- /dev/null +++ b/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.vcxproj @@ -0,0 +1,160 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {d1f52101-98d9-4a8b-9084-9d8b26ad0f0a} + My2лаб7 + 10.0 + + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + false + + + true + + + false + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.vcxproj.filters b/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.vcxproj.filters new file mode 100644 index 0000000..7e9b0c2 --- /dev/null +++ b/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/2 лаб 7.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + + + Исходные файлы + + + + + Файлы ресурсов + + + + + Файлы ресурсов + + + Файлы ресурсов + + + \ No newline at end of file diff --git a/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/Resource.h b/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/Resource.h new file mode 100644 index 0000000..bec604d --- /dev/null +++ b/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Включаемый файл, созданный в Microsoft Visual C++. +// Используется 2 лаб 7.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MY27_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MY27 107 +#define IDI_SMALL 108 +#define IDC_MY27 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Следующие стандартные значения для новых объектов +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/framework.h b/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/framework.h new file mode 100644 index 0000000..a8f6dc8 --- /dev/null +++ b/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/framework.h @@ -0,0 +1,15 @@ +// header.h: включаемый файл для стандартных системных включаемых файлов +// или включаемые файлы для конкретного проекта +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows +// Файлы заголовков Windows +#include +// Файлы заголовков среды выполнения C +#include +#include +#include +#include diff --git a/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/small.ico b/7, 8 лаб/7/2, 3, 4 лаб 7/2 лаб 7/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn&SNSS4zywZ(O!oQ5+P}ZqDo*iQywp2?H;6m*1FM+v(ik zKuPue2llH<lpzzQC0ZQ&fW!@2| zCA+sBFDXoZ&s`OJt!UeG*-;nSw@IqwS!bgXV{4brPy0l^ru(7V((LEr;MieH9$eol ztF#|gWOnaxM#TNAhX?ycZV#28>t6U2vUhev*6X=!y^Cyctm@*mSw&||2b89k2T12S zs5WPQGwMKAfV2p*(!)o6B2$E!rv#ZHO0PlduB^0pWIyVm*{I^DzUzC8eCW8? z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Tc~6Ac5i%SuR;)7P_Rmgxa8RG(_1BtfjM--f`=9IcLrc-IVu9EHCBN^1_rLc0 zHMpJwVULHV@)_IzP1U2Re7ydA{NPyNnvh=mXDmQrl zgvC#v#cJ#<57EsKj50Z#^J8#ivG&ywlWS6_Jpec?yx zxj<(;>ygOTy{SG&Uy}1OnAWGOzVZh80(I0nYXN!m`3vV%3^}*Q)`NLg6Mew0=bA?y z*gnBizg*Y9cYJY_@nqfC^oix4Qmc+gMvaf#%Wl+G8F*R8j$Df>NMHP`dl6Do;zmXf zBMwMBvTwC zx39j>7!rS6{Q6h+KReEwlW$7=HK#o`Z)qBF5hqHnq=@mnn;+b+r$5xQ~!YXt>yn zzw>PDchx$4fo*6#2|*s8mGem3Ty4g^FRpu;EMH(-9_R;6+stQlgMS;`*!Kpwm&M#S z)!2z`5*>8z;ozPO>dp2s?lm#@YcS1@5#+)BD<++$T?t@60IfbiU*HAhA^jo~Ren=!kukg)&8SBOE_~-UA>GK&yWsuhIb4Bal23BMSwUQPd=3>6gt zkl&Mem_kO+1$GfTIbpUK diff --git a/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч.sln b/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч.sln new file mode 100644 index 0000000..3610cd1 --- /dev/null +++ b/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.35130.168 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "5 лаб 2ч", "5 лаб 2ч\5 лаб 2ч.vcxproj", "{9EFD2733-044A-4626-A221-53115CF92170}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9EFD2733-044A-4626-A221-53115CF92170}.Debug|x64.ActiveCfg = Debug|x64 + {9EFD2733-044A-4626-A221-53115CF92170}.Debug|x64.Build.0 = Debug|x64 + {9EFD2733-044A-4626-A221-53115CF92170}.Debug|x86.ActiveCfg = Debug|Win32 + {9EFD2733-044A-4626-A221-53115CF92170}.Debug|x86.Build.0 = Debug|Win32 + {9EFD2733-044A-4626-A221-53115CF92170}.Release|x64.ActiveCfg = Release|x64 + {9EFD2733-044A-4626-A221-53115CF92170}.Release|x64.Build.0 = Release|x64 + {9EFD2733-044A-4626-A221-53115CF92170}.Release|x86.ActiveCfg = Release|Win32 + {9EFD2733-044A-4626-A221-53115CF92170}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {FB89A455-CA7F-4D32-8B45-4DAA3F651B97} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.cpp b/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.cpp new file mode 100644 index 0000000..6ca5431 --- /dev/null +++ b/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.cpp @@ -0,0 +1,303 @@ +// 5 лаб 2ч.cpp : Определяет точку входа для приложения. +// + +#include "framework.h" +#include "5 лаб 2ч.h" + +#define MAX_LOADSTRING 100 + +// Глобальные переменные: +HINSTANCE hInst; // текущий экземпляр +WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка +WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна + +// Отправить объявления функций, включенных в этот модуль кода: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + // TODO: Разместите код здесь. + + // Инициализация глобальных строк + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MY52, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Выполнить инициализацию приложения: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY52)); + + MSG msg; + + // Цикл основного сообщения: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// ФУНКЦИЯ: MyRegisterClass() +// +// ЦЕЛЬ: Регистрирует класс окна. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MY52)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY52); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// ФУНКЦИЯ: InitInstance(HINSTANCE, int) +// +// ЦЕЛЬ: Сохраняет маркер экземпляра и создает главное окно +// +// КОММЕНТАРИИ: +// +// В этой функции маркер экземпляра сохраняется в глобальной переменной, а также +// создается и выводится главное окно программы. +// +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// ЦЕЛЬ: Обрабатывает сообщения в главном окне. +// +// WM_COMMAND - обработать меню приложения +// WM_PAINT - Отрисовка главного окна +// WM_DESTROY - отправить сообщение о выходе и вернуться +// +// +void drawHome(HDC hdc) { + // Крыша + MoveToEx(hdc, 150, 350, NULL); + LineTo(hdc, 275, 250); + LineTo(hdc, 400, 350); + + // Дом + LineTo(hdc, 400, 525); + LineTo(hdc, 150, 525); + LineTo(hdc, 150, 350); + LineTo(hdc, 400, 350); + + // Окно + MoveToEx(hdc, 225, 400, NULL); + LineTo(hdc, 225, 475); + LineTo(hdc, 325, 475); + LineTo(hdc, 325, 400); + LineTo(hdc, 225, 400); + + // Рама + MoveToEx(hdc, 275, 400, NULL); + LineTo(hdc, 275, 475); + MoveToEx(hdc, 275, 425, NULL); + LineTo(hdc, 325, 425); + + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(0, 128, 0)); + SelectObject(hdc, hPen); + + //ЕЛКА + + // Нижний ярус + MoveToEx(hdc, 470, 525, NULL); + LineTo(hdc, 520, 475); + LineTo(hdc, 570, 525); + LineTo(hdc, 470, 525); + + // Средний ярус + MoveToEx(hdc, 490, 470, NULL); + LineTo(hdc, 520, 440); + LineTo(hdc, 550, 470); + LineTo(hdc, 490, 470); + + // Верхний ярус + MoveToEx(hdc, 500, 435, NULL); + LineTo(hdc, 520, 415); + LineTo(hdc, 540, 435); + LineTo(hdc, 500, 435); + + //Дерево + + hPen = CreatePen(PS_SOLID, 3, RGB(150, 75, 0)); + SelectObject(hdc, hPen); + + HBRUSH hBrush; + hBrush = CreateSolidBrush(RGB(150, 75, 0)); + SelectObject(hdc, hBrush); + + // Прямоугольник + Rectangle(hdc, 40, 530, 50, 450); + + + hPen = CreatePen(PS_SOLID, 3, RGB(0, 128, 0)); + SelectObject(hdc, hPen); + + hBrush; + hBrush = CreateSolidBrush(RGB(0, 128, 0)); + SelectObject(hdc, hBrush); + // Эллипс Кусты/Листья + Ellipse(hdc, 9, 420, 50, 450); + Ellipse(hdc, 40, 423, 80, 460); + Ellipse(hdc, 32, 370, 60, 440); + Ellipse(hdc, 5, 400, 40, 430); + Ellipse(hdc, 50, 400, 90, 430); + + // забор + hPen = CreatePen(PS_SOLID, 3, RGB(128, 0, 0)); + SelectObject(hdc, hPen); + + { + int x1 = 80, y1 = 435; + int x2 = 80, y2 = 520; + + do { + MoveToEx(hdc, x1, y1, NULL); + LineTo(hdc, x2, y2); + + x1 += 25; + x2 += 25; + } while (x1 <= 200); + + } + // горизонтальный забор + { + int x1 = 60, y1 = 460; + int x2 = 190, y2 = 460; + + do { + MoveToEx(hdc, x1, y1, NULL); + LineTo(hdc, x2, y2); + + y1 += 25; + y2 += 25; + } while (y2 <= 500); + + } + + // солнце + hBrush = CreateSolidBrush(RGB(255, 255, 255)); + SelectObject(hdc, hBrush); + + hPen = CreatePen(PS_SOLID, 3, RGB(255, 255, 0)); + SelectObject(hdc, hPen); + Ellipse(hdc, 425, 150, 505, 230); + // лучи + MoveToEx(hdc, 350, 190, NULL); + LineTo(hdc, 410, 180); + MoveToEx(hdc, 390, 245, NULL); + LineTo(hdc, 420, 210); + MoveToEx(hdc, 440, 280, NULL); + LineTo(hdc, 450, 240); +} +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + int wmId = LOWORD(wParam); + // Разобрать выбор в меню: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + // TODO: Добавьте сюда любой код прорисовки, использующий HDC... + drawHome(hdc); + + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Обработчик сообщений для окна "О программе". +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} diff --git a/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.h b/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.h new file mode 100644 index 0000000..b798bf5 --- /dev/null +++ b/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.h @@ -0,0 +1,3 @@ +#pragma once + +#include "resource.h" diff --git a/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.ico b/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^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 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.vcxproj b/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.vcxproj new file mode 100644 index 0000000..2c7303f --- /dev/null +++ b/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.vcxproj @@ -0,0 +1,160 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {9efd2733-044a-4626-a221-53115cf92170} + My5лаб2ч + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + false + + + true + + + false + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.vcxproj.filters b/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.vcxproj.filters new file mode 100644 index 0000000..d22b9e7 --- /dev/null +++ b/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/5 лаб 2ч.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + + + Исходные файлы + + + + + Файлы ресурсов + + + + + Файлы ресурсов + + + Файлы ресурсов + + + \ No newline at end of file diff --git a/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/Resource.h b/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/Resource.h new file mode 100644 index 0000000..1e9b20f --- /dev/null +++ b/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Включаемый файл, созданный в Microsoft Visual C++. +// Используется 5 лаб 2ч.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MY52_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MY52 107 +#define IDI_SMALL 108 +#define IDC_MY52 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Следующие стандартные значения для новых объектов +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/framework.h b/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/framework.h new file mode 100644 index 0000000..a8f6dc8 --- /dev/null +++ b/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/framework.h @@ -0,0 +1,15 @@ +// header.h: включаемый файл для стандартных системных включаемых файлов +// или включаемые файлы для конкретного проекта +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows +// Файлы заголовков Windows +#include +// Файлы заголовков среды выполнения C +#include +#include +#include +#include diff --git a/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/small.ico b/7, 8 лаб/7/5 лаб 7 2ч/5 лаб 2ч/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn&SNSS4zywZ(O!oQ5+P}ZqDo*iQywp2?H;6m*1FM+v(ik zKuPue2llH<lpzzQC0ZQ&fW!@2| zCA+sBFDXoZ&s`OJt!UeG*-;nSw@IqwS!bgXV{4brPy0l^ru(7V((LEr;MieH9$eol ztF#|gWOnaxM#TNAhX?ycZV#28>t6U2vUhev*6X=!y^Cyctm@*mSw&||2b89k2T12S zs5WPQGwMKAfV2p*(!)o6B2$E!rv#ZHO0PlduB^0pWIyVm*{I^DzUzC8eCW8? z=BFT&pQ;pzy=-=tzc!;ZH7GzD1dQ^-Q+y&NpT{jR`AMZnyl1oX>1)aw`%wjE%C9p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JwVULHV@)_IzP1U2Re7ydA{NPyNnvh=mXDmQrl zgvC#v#cJ#<57EsKj50Z#^J8#ivG&ywlWS6_Jpec?yx zxj<(;>ygOTy{SG&Uy}1OnAWGOzVZh80(I0nYXN!m`3vV%3^}*Q)`NLg6Mew0=bA?y z*gnBizg*Y9cYJY_@nqfC^oix4Qmc+gMvaf#%Wl+G8F*R8j$Df>NMHP`dl6Do;zmXf zBMwMBvTwC zx39j>7!rS6{Q6h+KReEwlW$7=HK#o`Z)qBF5hqHnq=@mnn;+b+r$5xQ~!YXt>yn zzw>PDchx$4fo*6#2|*s8mGem3Ty4g^FRpu;EMH(-9_R;6+stQlgMS;`*!Kpwm&M#S z)!2z`5*>8z;ozPO>dp2s?lm#@YcS1@5#+)BD<++$T?t@60IfbiU*HAhA^jo~Ren=!kukg)&8SBOE_~-UA>GK&yWsuhIb4Bal23BMSwUQPd=3>6gt zkl&Mem_kO+1$GfTIbpUK diff --git a/7, 8 лаб/7/5 лаб 7/5 лаб 7.sln b/7, 8 лаб/7/5 лаб 7/5 лаб 7.sln new file mode 100644 index 0000000..bbc62b9 --- /dev/null +++ b/7, 8 лаб/7/5 лаб 7/5 лаб 7.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.35130.168 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "5 лаб 7", "5 лаб 7\5 лаб 7.vcxproj", "{C52EC074-865B-4739-BBBD-80A4FC0492CE}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C52EC074-865B-4739-BBBD-80A4FC0492CE}.Debug|x64.ActiveCfg = Debug|x64 + {C52EC074-865B-4739-BBBD-80A4FC0492CE}.Debug|x64.Build.0 = Debug|x64 + {C52EC074-865B-4739-BBBD-80A4FC0492CE}.Debug|x86.ActiveCfg = Debug|Win32 + {C52EC074-865B-4739-BBBD-80A4FC0492CE}.Debug|x86.Build.0 = Debug|Win32 + {C52EC074-865B-4739-BBBD-80A4FC0492CE}.Release|x64.ActiveCfg = Release|x64 + {C52EC074-865B-4739-BBBD-80A4FC0492CE}.Release|x64.Build.0 = Release|x64 + {C52EC074-865B-4739-BBBD-80A4FC0492CE}.Release|x86.ActiveCfg = Release|Win32 + {C52EC074-865B-4739-BBBD-80A4FC0492CE}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F2E3C3A7-3CD4-4576-B64B-F498413EECE5} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.cpp b/7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.cpp new file mode 100644 index 0000000..5eb9cd4 --- /dev/null +++ b/7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.cpp @@ -0,0 +1,365 @@ +// 5 лаб 7.cpp : Определяет точку входа для приложения. +// + +#include "framework.h" +#include "5 лаб 7.h" + +#define MAX_LOADSTRING 100 + +// Глобальные переменные: +HINSTANCE hInst; // текущий экземпляр +WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка +WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна + +// Отправить объявления функций, включенных в этот модуль кода: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + // TODO: Разместите код здесь. + + // Инициализация глобальных строк + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MY57, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Выполнить инициализацию приложения: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY57)); + + MSG msg; + + // Цикл основного сообщения: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// ФУНКЦИЯ: MyRegisterClass() +// +// ЦЕЛЬ: Регистрирует класс окна. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MY57)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY57); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// ФУНКЦИЯ: InitInstance(HINSTANCE, int) +// +// ЦЕЛЬ: Сохраняет маркер экземпляра и создает главное окно +// +// КОММЕНТАРИИ: +// +// В этой функции маркер экземпляра сохраняется в глобальной переменной, а также +// создается и выводится главное окно программы. +// +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// ЦЕЛЬ: Обрабатывает сообщения в главном окне. +// +// WM_COMMAND - обработать меню приложения +// WM_PAINT - Отрисовка главного окна +// WM_DESTROY - отправить сообщение о выходе и вернуться +// +// +//лр 5 №2 +void drawTree2(HDC hdc) { + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(0, 128, 0)); + SelectObject(hdc, hPen); + + //ЕЛКА + + // Нижний ярус + MoveToEx(hdc, 470, 525, NULL); + LineTo(hdc, 520, 475); + LineTo(hdc, 570, 525); + LineTo(hdc, 470, 525); + + // Средний ярус + MoveToEx(hdc, 490, 470, NULL); + LineTo(hdc, 520, 440); + LineTo(hdc, 550, 470); + LineTo(hdc, 490, 470); + + // Верхний ярус + MoveToEx(hdc, 500, 435, NULL); + LineTo(hdc, 520, 415); + LineTo(hdc, 540, 435); + LineTo(hdc, 500, 435); +} + +//лр 5 №5 +void drawTree3(HDC hdc) { + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(150, 75, 0)); + SelectObject(hdc, hPen); + + + HBRUSH hBrush = CreateSolidBrush(RGB(150, 75, 0)); + SelectObject(hdc, hBrush); + + // Прямоугольник + Rectangle(hdc, 40, 530, 50, 450); + + + hPen = CreatePen(PS_SOLID, 3, RGB(0, 128, 0)); + SelectObject(hdc, hPen); + + + hBrush = CreateSolidBrush(RGB(0, 128, 0)); + SelectObject(hdc, hBrush); + // Эллипс Кусты/Листья + Ellipse(hdc, 9, 420, 50, 450); + Ellipse(hdc, 40, 423, 80, 460); + Ellipse(hdc, 32, 370, 60, 440); + Ellipse(hdc, 5, 400, 40, 430); + Ellipse(hdc, 50, 400, 90, 430); +} +//лр 5 №8 +void drawBus(HDC hdc) { + HPEN hPen = CreatePen(PS_SOLID, 2, RGB(128, 128, 128)); // Серый цвет + SelectObject(hdc, hPen); + + + // Кузов автобуса + HBRUSH hBrush = CreateSolidBrush(RGB(128, 128, 128)); + SelectObject(hdc, hBrush); + Rectangle(hdc, 100, 200, 400, 350); + + // Двери + hBrush = CreateSolidBrush(RGB(181, 184, 177)); // Ссветло-серый цвет + SelectObject(hdc, hBrush); + Rectangle(hdc, 265, 230, 313, 340); + Rectangle(hdc, 315, 230, 360, 340); + + //ручки двери + hBrush = CreateSolidBrush(RGB(150, 75, 0)); //коричневый цвет + SelectObject(hdc, hBrush); + + hPen = CreatePen(PS_SOLID, 2, RGB(150, 75, 0)); // коричневый цвет + SelectObject(hdc, hPen); + + Rectangle(hdc, 300, 270, 311, 290); + Rectangle(hdc, 315, 270, 325, 290); + + // Окна + + hBrush = CreateSolidBrush(RGB(0, 150, 255)); // Голубой цвет + SelectObject(hdc, hBrush); + hPen = CreatePen(PS_SOLID, 2, RGB(0, 150, 255)); // Голубой цвет + SelectObject(hdc, hPen); + + Rectangle(hdc, 115, 230, 150, 280); + Rectangle(hdc, 170, 230, 203, 280); + Rectangle(hdc, 215, 230, 250, 280); + Rectangle(hdc, 365, 230, 400, 280); + Rectangle(hdc, 275, 235, 305, 260); + Rectangle(hdc, 325, 235, 350, 260); + + + //фары + hBrush = CreateSolidBrush(RGB(255, 255, 139)); //желтый цвет + SelectObject(hdc, hBrush); + + hPen = CreatePen(PS_SOLID, 2, RGB(255, 255, 139)); // желтый цвет + SelectObject(hdc, hPen); + + Rectangle(hdc, 90, 290, 105, 320); + + // Колеса + hPen = CreatePen(PS_SOLID, 4, RGB(0, 0, 0)); + SelectObject(hdc, hPen); + hBrush = CreateSolidBrush(RGB(181, 184, 177)); + SelectObject(hdc, hBrush); + Ellipse(hdc, 135, 340, 170, 370); + Ellipse(hdc, 235, 340, 270, 370); + Ellipse(hdc, 365, 340, 400, 370); +} +//лр 6 № 1 +void drawKust(HDC hdc) { + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(139, 0, 255)); + SelectObject(hdc, hPen); + int x1 = 400, y1 = 150; + int x2 = 500, y2 = 250; + + do { + MoveToEx(hdc, x1, y1, NULL); + LineTo(hdc, x2, y2); + + x1 += 25; + } while (x1 <= 600); +} +//лр 6 №2 +void drawKust2(HDC hdc) { + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(0, 0, 128)); + SelectObject(hdc, hPen); + + { + + int x1 = 0, y1 = 250; + int x2 = 100, y2 = 250; + + do { + MoveToEx(hdc, x1, y1, NULL); + LineTo(hdc, x2, y2); + + x1 += 25; + y1 -= 50; + } while (x1 <= 100); + + x1 = 100; + y1 = 50; + + do { + MoveToEx(hdc, x1, y1, NULL); + LineTo(hdc, x2, y2); + + x1 += 25; + y1 += 50; + } while (x1 <= 200); + + } +} + //лр 6 № 4 + void drawZabor(HDC hdc) { + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(128, 0, 0)); + SelectObject(hdc, hPen); + + { + int x1 = 150, y1 = 0; + int x2 = 150, y2 = 100; + + do { + MoveToEx(hdc, x1, y1, NULL); + LineTo(hdc, x2, y2); + + x1 += 25; + x2 += 25; + } while (x1 <= 450); + + } + } + + +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + int wmId = LOWORD(wParam); + // Разобрать выбор в меню: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + // TODO: Добавьте сюда любой код прорисовки, использующий HDC... + drawTree2(hdc); + drawTree3(hdc); + drawBus(hdc); + drawKust(hdc); + drawKust2(hdc); + drawZabor(hdc); + + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Обработчик сообщений для окна "О программе". +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} diff --git a/7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.h b/7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.h new file mode 100644 index 0000000..b798bf5 --- /dev/null +++ b/7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.h @@ -0,0 +1,3 @@ +#pragma once + +#include "resource.h" diff --git a/7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.ico b/7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId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iFLM}0lnVRS(soxp8*bUszE^EK2ef+gIF6 z)&`7b>Ncy2Lr&9`h==Lb?5KDx`AJ*0ML+T$*Km?>WymTYD%+N_D{5yNCy6`O55K|( z?cn@vS>+|I&ok7F&QPgIpS1(^+xdE6fGSgVy(s{WJUnp~Dj&wx!B~OJt|Tt27Ug4I ztY`+PQgJk0uUba^@;c8$=*rXg=7aQ|$9>)|U+?+F^IxMV>7N|KO&I6fGETTPRMc4+ zVYP!*m&IBUPe_c~tc~%kRM+z + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {c52ec074-865b-4739-bbbd-80a4fc0492ce} + My5лаб7 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + false + + + true + + + false + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.vcxproj.filters b/7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.vcxproj.filters new file mode 100644 index 0000000..7ca4158 --- /dev/null +++ b/7, 8 лаб/7/5 лаб 7/5 лаб 7/5 лаб 7.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + + + Исходные файлы + + + + + Файлы ресурсов + + + + + Файлы ресурсов + + + Файлы ресурсов + + + \ No newline at end of file diff --git a/7, 8 лаб/7/5 лаб 7/5 лаб 7/Resource.h b/7, 8 лаб/7/5 лаб 7/5 лаб 7/Resource.h new file mode 100644 index 0000000..36cadc2 --- /dev/null +++ b/7, 8 лаб/7/5 лаб 7/5 лаб 7/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Включаемый файл, созданный в Microsoft Visual C++. +// Используется 5 лаб 7.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MY57_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MY57 107 +#define IDI_SMALL 108 +#define IDC_MY57 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Следующие стандартные значения для новых объектов +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/7, 8 лаб/7/5 лаб 7/5 лаб 7/framework.h b/7, 8 лаб/7/5 лаб 7/5 лаб 7/framework.h new file mode 100644 index 0000000..a8f6dc8 --- /dev/null +++ b/7, 8 лаб/7/5 лаб 7/5 лаб 7/framework.h @@ -0,0 +1,15 @@ +// header.h: включаемый файл для стандартных системных включаемых файлов +// или включаемые файлы для конкретного проекта +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows +// Файлы заголовков Windows +#include +// Файлы заголовков среды выполнения C +#include +#include +#include +#include diff --git a/7, 8 лаб/7/5 лаб 7/5 лаб 7/small.ico b/7, 8 лаб/7/5 лаб 7/5 лаб 7/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn&SNSS4zywZ(O!oQ5+P}ZqDo*iQywp2?H;6m*1FM+v(ik zKuPue2llH<lpzzQC0ZQ&fW!@2| zCA+sBFDXoZ&s`OJt!UeG*-;nSw@IqwS!bgXV{4brPy0l^ru(7V((LEr;MieH9$eol ztF#|gWOnaxM#TNAhX?ycZV#28>t6U2vUhev*6X=!y^Cyctm@*mSw&||2b89k2T12S zs5WPQGwMKAfV2p*(!)o6B2$E!rv#ZHO0PlduB^0pWIyVm*{I^DzUzC8eCW8? z=BFT&pQ;pzy=-=tzc!;ZH7GzD1dQ^-Q+y&NpT{jR`AMZnyl1oX>1)aw`%wjE%C9pb z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VULHV@)_IzP1U2Re7ydA{NPyNnvh=mXDmQrl zgvC#v#cJ#<57EsKj50Z#^J8#ivG&ywlWS6_Jpec?yx zxj<(;>ygOTy{SG&Uy}1OnAWGOzVZh80(I0nYXN!m`3vV%3^}*Q)`NLg6Mew0=bA?y z*gnBizg*Y9cYJY_@nqfC^oix4Qmc+gMvaf#%Wl+G8F*R8j$Df>NMHP`dl6Do;zmXf zBMwMBvTwC zx39j>7!rS6{Q6h+KReEwlW$7=HK#o`Z)qBF5hqHnq=@mnn;+b+r$5xQ~!YXt>yn zzw>PDchx$4fo*6#2|*s8mGem3Ty4g^FRpu;EMH(-9_R;6+stQlgMS;`*!Kpwm&M#S z)!2z`5*>8z;ozPO>dp2s?lm#@YcS1@5#+)BD<++$T?t@60IfbiU*HAhA^jo~Ren=!kukg)&8SBOE_~-UA>GK&yWsuhIb4Bal23BMSwUQPd=3>6gt zkl&Mem_kO+1$GfTIbpUK diff --git a/7, 8 лаб/8/1.1 лаб 8/1 лаб 8.sln b/7, 8 лаб/8/1.1 лаб 8/1 лаб 8.sln new file mode 100644 index 0000000..2969320 --- /dev/null +++ b/7, 8 лаб/8/1.1 лаб 8/1 лаб 8.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "1 лаб 8", "1 лаб 8\1 лаб 8.vcxproj", "{F0DCCE54-A218-4C9C-83F6-B932B217BC45}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F0DCCE54-A218-4C9C-83F6-B932B217BC45}.Debug|x64.ActiveCfg = Debug|x64 + {F0DCCE54-A218-4C9C-83F6-B932B217BC45}.Debug|x64.Build.0 = Debug|x64 + {F0DCCE54-A218-4C9C-83F6-B932B217BC45}.Debug|x86.ActiveCfg = Debug|Win32 + {F0DCCE54-A218-4C9C-83F6-B932B217BC45}.Debug|x86.Build.0 = Debug|Win32 + {F0DCCE54-A218-4C9C-83F6-B932B217BC45}.Release|x64.ActiveCfg = Release|x64 + {F0DCCE54-A218-4C9C-83F6-B932B217BC45}.Release|x64.Build.0 = Release|x64 + {F0DCCE54-A218-4C9C-83F6-B932B217BC45}.Release|x86.ActiveCfg = Release|Win32 + {F0DCCE54-A218-4C9C-83F6-B932B217BC45}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D02A5949-453E-4EC2-B7AF-F22B35CF408F} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.cpp b/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.cpp new file mode 100644 index 0000000..51c3c77 --- /dev/null +++ b/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.cpp @@ -0,0 +1,206 @@ +// 1 лаб 8.cpp : Определяет точку входа для приложения. +// + +#include "framework.h" +#include "1 лаб 8.h" + +#define MAX_LOADSTRING 100 + +// Глобальные переменные: +HINSTANCE hInst; // текущий экземпляр +WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка +WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна + +// Отправить объявления функций, включенных в этот модуль кода: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + // TODO: Разместите код здесь. + + // Инициализация глобальных строк + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MY18, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Выполнить инициализацию приложения: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY18)); + + MSG msg; + + // Цикл основного сообщения: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// ФУНКЦИЯ: MyRegisterClass() +// +// ЦЕЛЬ: Регистрирует класс окна. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MY18)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY18); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// ФУНКЦИЯ: InitInstance(HINSTANCE, int) +// +// ЦЕЛЬ: Сохраняет маркер экземпляра и создает главное окно +// +// КОММЕНТАРИИ: +// +// В этой функции маркер экземпляра сохраняется в глобальной переменной, а также +// создается и выводится главное окно программы. +// +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// ЦЕЛЬ: Обрабатывает сообщения в главном окне. +// +// WM_COMMAND - обработать меню приложения +// WM_PAINT - Отрисовка главного окна +// WM_DESTROY - отправить сообщение о выходе и вернуться +// +// +void StClausAuto(HDC hdc, int x, int y) { + // верхний треугольник + MoveToEx(hdc, 20 + x, 0 + y, NULL); + LineTo(hdc, 30 + x, 20 + y); + LineTo(hdc, 10 + x, 20 + y); + LineTo(hdc, 20 + x, 0 + y); + + // средний треугольник + MoveToEx(hdc, 20 + x, 10 + y, NULL); + LineTo(hdc, 30 + x, 40 + y); + LineTo(hdc, 10 + x, 40 + y); + LineTo(hdc, 20 + x, 10 + y); + + // нижний треугольник + MoveToEx(hdc, 20 + x, 30 + y, NULL); + LineTo(hdc, 40 + x, 80 + y); + LineTo(hdc, 0 + x, 80 + y); + LineTo(hdc, 20 + x, 30 + y); +} + +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + int wmId = LOWORD(wParam); + // Разобрать выбор в меню: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + // TODO: Добавьте сюда любой код прорисовки, использующий HDC... + StClausAuto(hdc, 0, 0); + StClausAuto(hdc, 200, 200); + StClausAuto(hdc, 100, 100); + StClausAuto(hdc, 0, 200); + StClausAuto(hdc, 200, 0); + + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Обработчик сообщений для окна "О программе". +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} diff --git a/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.h b/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.h new file mode 100644 index 0000000..b798bf5 --- /dev/null +++ b/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.h @@ -0,0 +1,3 @@ +#pragma once + +#include "resource.h" diff --git a/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.ico b/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3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11R)=W5Y9C2?( zs;>bwGK7{}KmxVOJuwbG&)ZX+Hh3zgR3T)g2Ux^KC>zR)agkn)H@3FM(~%rPFN^{7 zbaw6`4t~;j$Q5`?qf}K{M_JRott;joZHK!KB;z@LsB&dJNBQD~al~C=-AW?11#NX< z>jS(8YPHtOk`Hf+lP|j6@NYQTGoOEWm|hJ><=OKI*>3jV_`Yw{bXqB(G{PNkaag?@Cw&DJZQ*9OJ+6Z}c=0lj{V6J68 zL&Osjy*4vqJS!dOsgxA+Y}rl|*~|z}buLqqwkD3{$(Co$AxfUY#?v#e`CgW@XDUY{ z>l4!2Gigowa+TyR{d}okD!+8xZ{zY?{v%*C%cW1_hTNr5Xb5J%56^n7|1!=01C)(A Gr1CF>Ip^#E literal 0 HcmV?d00001 diff --git a/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.vcxproj b/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.vcxproj new file mode 100644 index 0000000..37a0c5f --- /dev/null +++ b/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.vcxproj @@ -0,0 +1,148 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {f0dcce54-a218-4c9c-83f6-b932b217bc45} + My1лаб8 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.vcxproj.filters b/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.vcxproj.filters new file mode 100644 index 0000000..d9889c0 --- /dev/null +++ b/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/1 лаб 8.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + + + Исходные файлы + + + + + Файлы ресурсов + + + + + Файлы ресурсов + + + Файлы ресурсов + + + \ No newline at end of file diff --git a/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/Resource.h b/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/Resource.h new file mode 100644 index 0000000..75310c6 --- /dev/null +++ b/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Включаемый файл, созданный в Microsoft Visual C++. +// Используется 1 лаб 8.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MY18_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MY18 107 +#define IDI_SMALL 108 +#define IDC_MY18 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Следующие стандартные значения для новых объектов +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/framework.h b/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/framework.h new file mode 100644 index 0000000..a8f6dc8 --- /dev/null +++ b/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/framework.h @@ -0,0 +1,15 @@ +// header.h: включаемый файл для стандартных системных включаемых файлов +// или включаемые файлы для конкретного проекта +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows +// Файлы заголовков Windows +#include +// Файлы заголовков среды выполнения C +#include +#include +#include +#include diff --git a/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/small.ico b/7, 8 лаб/8/1.1 лаб 8/1 лаб 8/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn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VoX+!2h97EW4L-LriA&oYnZCvL;5zvYO@&NSejCI&|T*e1;&eJEeu`x#C z8{5<;gHevUqYWZ@%bcbT(*wux*4qys$-mVVYTwvHddRo9NM047zh39~wJx z9M#W5mix!+@has( zPZ59^AP<0PmqeeQK!-LmX^|IYi1hI^w_Nk*EABj|J^82mp-$bQ5t{yRkgM}HQZ>fc z3*sdZ(};f6Af|-$E0f`+$@t1-s8*?Dh=nSZ5^3Gx?P6kq7>c37L<+@FA(XkR=vNau z1En7Tc~6Ac5i%SuR;)7P_Rmgxa8RG(_1BtfjM--f`=9IcLrc-IVu9EHCBN^1_rLc0 zHMpJwVULHV@)_IzP1U2Re7ydA{NPyNnvh=mXDmQrl zgvC#v#cJ#<57EsKj50Z#^J8#ivG&ywlWS6_Jpec?yx zxj<(;>ygOTy{SG&Uy}1OnAWGOzVZh80(I0nYXN!m`3vV%3^}*Q)`NLg6Mew0=bA?y z*gnBizg*Y9cYJY_@nqfC^oix4Qmc+gMvaf#%Wl+G8F*R8j$Df>NMHP`dl6Do;zmXf zBMwMBvTwC zx39j>7!rS6{Q6h+KReEwlW$7=HK#o`Z)qBF5hqHnq=@mnn;+b+r$5xQ~!YXt>yn zzw>PDchx$4fo*6#2|*s8mGem3Ty4g^FRpu;EMH(-9_R;6+stQlgMS;`*!Kpwm&M#S z)!2z`5*>8z;ozPO>dp2s?lm#@YcS1@5#+)BD<++$T?t@60IfbiU*HAhA^jo~Ren=!kukg)&8SBOE_~-UA>GK&yWsuhIb4Bal23BMSwUQPd=3>6gt zkl&Mem_kO+1$GfTIbpUK diff --git a/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8.sln b/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8.sln new file mode 100644 index 0000000..b1e8917 --- /dev/null +++ b/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "1.2 лаб 8", "1.2 лаб 8\1.2 лаб 8.vcxproj", "{B02C93C9-4899-4401-91DF-9C81FEB02801}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B02C93C9-4899-4401-91DF-9C81FEB02801}.Debug|x64.ActiveCfg = Debug|x64 + {B02C93C9-4899-4401-91DF-9C81FEB02801}.Debug|x64.Build.0 = Debug|x64 + {B02C93C9-4899-4401-91DF-9C81FEB02801}.Debug|x86.ActiveCfg = Debug|Win32 + {B02C93C9-4899-4401-91DF-9C81FEB02801}.Debug|x86.Build.0 = Debug|Win32 + {B02C93C9-4899-4401-91DF-9C81FEB02801}.Release|x64.ActiveCfg = Release|x64 + {B02C93C9-4899-4401-91DF-9C81FEB02801}.Release|x64.Build.0 = Release|x64 + {B02C93C9-4899-4401-91DF-9C81FEB02801}.Release|x86.ActiveCfg = Release|Win32 + {B02C93C9-4899-4401-91DF-9C81FEB02801}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {7051F734-2BA2-4F9A-8780-8A6A0E615461} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.cpp b/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.cpp new file mode 100644 index 0000000..eeaaa99 --- /dev/null +++ b/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.cpp @@ -0,0 +1,205 @@ +// 1.2 лаб 8.cpp : Определяет точку входа для приложения. +// + +#include "framework.h" +#include "1.2 лаб 8.h" + +#define MAX_LOADSTRING 100 + +// Глобальные переменные: +HINSTANCE hInst; // текущий экземпляр +WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка +WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна + +// Отправить объявления функций, включенных в этот модуль кода: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + // TODO: Разместите код здесь. + + // Инициализация глобальных строк + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MY128, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Выполнить инициализацию приложения: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY128)); + + MSG msg; + + // Цикл основного сообщения: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// ФУНКЦИЯ: MyRegisterClass() +// +// ЦЕЛЬ: Регистрирует класс окна. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MY128)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY128); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// ФУНКЦИЯ: InitInstance(HINSTANCE, int) +// +// ЦЕЛЬ: Сохраняет маркер экземпляра и создает главное окно +// +// КОММЕНТАРИИ: +// +// В этой функции маркер экземпляра сохраняется в глобальной переменной, а также +// создается и выводится главное окно программы. +// +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// ЦЕЛЬ: Обрабатывает сообщения в главном окне. +// +// WM_COMMAND - обработать меню приложения +// WM_PAINT - Отрисовка главного окна +// WM_DESTROY - отправить сообщение о выходе и вернуться +// +// +void StClausAuto(HDC hdc, int x, int y) { + // верхний треугольник + MoveToEx(hdc, 20 + x, 0 + y, NULL); + LineTo(hdc, 30 + x, 20 + y); + LineTo(hdc, 10 + x, 20 + y); + LineTo(hdc, 20 + x, 0 + y); + + // средний треугольник + MoveToEx(hdc, 20 + x, 10 + y, NULL); + LineTo(hdc, 30 + x, 40 + y); + LineTo(hdc, 10 + x, 40 + y); + LineTo(hdc, 20 + x, 10 + y); + + // нижний треугольник + MoveToEx(hdc, 20 + x, 30 + y, NULL); + LineTo(hdc, 40 + x, 80 + y); + LineTo(hdc, 0 + x, 80 + y); + LineTo(hdc, 20 + x, 30 + y); +} +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + int wmId = LOWORD(wParam); + // Разобрать выбор в меню: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + // TODO: Добавьте сюда любой код прорисовки, использующий HDC... + int x = 0; + do { + StClausAuto(hdc, x, 0); + x += 50; + } while (x < 400); + + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Обработчик сообщений для окна "О программе". +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} diff --git a/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.h b/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.h new file mode 100644 index 0000000..b798bf5 --- /dev/null +++ b/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.h @@ -0,0 +1,3 @@ +#pragma once + +#include "resource.h" diff --git a/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.ico b/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.ico new file mode 100644 index 0000000000000000000000000000000000000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tFQn*N8=yACD!i>Qp2ak9QI-tU1}u9$5@`4Q3C1T8fkz1Q&VA_;e! zc1jv+;IsPQyMnJZ=%l18n^&eaxx0+Dq|2;$Pm6s5^zf$Y&K=y3l3HOlA62XybK|(; z4vkfF1L$T5eYb!K>X$oXTzsCtXE=NCq)f>wke9w-85b4VQeKRU6D;pnz>QIGd9kSH@oDkIKeUc5dxl{Um9}`r#LER1aUl z+1s)lOj@7k$R3>|XOli{2Wq$TnZW@0rtHj902+C8;(S#87?%-aE;2i(xGZm!PjxZ3 z86aQ9)^z4-8TZRGK9AumPv4u5(s!Qpd8>T6jiaP}vJH1(oNvoG;fBbqGe^R_ z2lFqBStFj3=(U+8<9VsB=TlP5vSm9>%x6n@y0iRA(xNz?=UkpVhbVa(o6JtY=6_jc zovj?5v~Ngi(WJIrC{{`ClFvi^Q}LzaejArx^WOraSuA}TH{>pfLPIh8eR$Yw{Re9C L-=TE$A(ejtni=Yt literal 0 HcmV?d00001 diff --git a/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.vcxproj b/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.vcxproj new file mode 100644 index 0000000..5f442f3 --- /dev/null +++ b/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.vcxproj @@ -0,0 +1,148 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {b02c93c9-4899-4401-91df-9c81feb02801} + My12лаб8 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.vcxproj.filters b/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.vcxproj.filters new file mode 100644 index 0000000..55a3608 --- /dev/null +++ b/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/1.2 лаб 8.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + + + Исходные файлы + + + + + Файлы ресурсов + + + + + Файлы ресурсов + + + Файлы ресурсов + + + \ No newline at end of file diff --git a/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/Resource.h b/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/Resource.h new file mode 100644 index 0000000..306aef1 --- /dev/null +++ b/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Включаемый файл, созданный в Microsoft Visual C++. +// Используется 1.2 лаб 8.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MY128_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MY128 107 +#define IDI_SMALL 108 +#define IDC_MY128 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Следующие стандартные значения для новых объектов +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/framework.h b/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/framework.h new file mode 100644 index 0000000..a8f6dc8 --- /dev/null +++ b/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/framework.h @@ -0,0 +1,15 @@ +// header.h: включаемый файл для стандартных системных включаемых файлов +// или включаемые файлы для конкретного проекта +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows +// Файлы заголовков Windows +#include +// Файлы заголовков среды выполнения C +#include +#include +#include +#include diff --git a/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/small.ico b/7, 8 лаб/8/1.2 лаб 8/1.2 лаб 8/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS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file mode 100644 index 0000000..939d785 --- /dev/null +++ b/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "1.3 лаб 8", "1.3 лаб 8\1.3 лаб 8.vcxproj", "{04B1B913-F6A7-4C94-8331-2CDBB371B3EE}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {04B1B913-F6A7-4C94-8331-2CDBB371B3EE}.Debug|x64.ActiveCfg = Debug|x64 + {04B1B913-F6A7-4C94-8331-2CDBB371B3EE}.Debug|x64.Build.0 = Debug|x64 + {04B1B913-F6A7-4C94-8331-2CDBB371B3EE}.Debug|x86.ActiveCfg = Debug|Win32 + {04B1B913-F6A7-4C94-8331-2CDBB371B3EE}.Debug|x86.Build.0 = Debug|Win32 + {04B1B913-F6A7-4C94-8331-2CDBB371B3EE}.Release|x64.ActiveCfg = Release|x64 + {04B1B913-F6A7-4C94-8331-2CDBB371B3EE}.Release|x64.Build.0 = Release|x64 + {04B1B913-F6A7-4C94-8331-2CDBB371B3EE}.Release|x86.ActiveCfg = Release|Win32 + {04B1B913-F6A7-4C94-8331-2CDBB371B3EE}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {9F237C29-7A8A-4B13-AD5B-88B665BA31B6} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.cpp b/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.cpp new file mode 100644 index 0000000..e75da7b --- /dev/null +++ b/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.cpp @@ -0,0 +1,206 @@ +// 1.3 лаб 8.cpp : Определяет точку входа для приложения. +// + +#include "framework.h" +#include "1.3 лаб 8.h" + +#define MAX_LOADSTRING 100 + +// Глобальные переменные: +HINSTANCE hInst; // текущий экземпляр +WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка +WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна + +// Отправить объявления функций, включенных в этот модуль кода: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + // TODO: Разместите код здесь. + + // Инициализация глобальных строк + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MY138, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Выполнить инициализацию приложения: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY138)); + + MSG msg; + + // Цикл основного сообщения: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// ФУНКЦИЯ: MyRegisterClass() +// +// ЦЕЛЬ: Регистрирует класс окна. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MY138)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY138); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// ФУНКЦИЯ: InitInstance(HINSTANCE, int) +// +// ЦЕЛЬ: Сохраняет маркер экземпляра и создает главное окно +// +// КОММЕНТАРИИ: +// +// В этой функции маркер экземпляра сохраняется в глобальной переменной, а также +// создается и выводится главное окно программы. +// +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// ЦЕЛЬ: Обрабатывает сообщения в главном окне. +// +// WM_COMMAND - обработать меню приложения +// WM_PAINT - Отрисовка главного окна +// WM_DESTROY - отправить сообщение о выходе и вернуться +// +// +void StClausAuto(HDC hdc, int x, int y) { + // верхний треугольник + MoveToEx(hdc, 20 + x, 0 + y, NULL); + LineTo(hdc, 30 + x, 20 + y); + LineTo(hdc, 10 + x, 20 + y); + LineTo(hdc, 20 + x, 0 + y); + + // средний треугольник + MoveToEx(hdc, 20 + x, 10 + y, NULL); + LineTo(hdc, 30 + x, 40 + y); + LineTo(hdc, 10 + x, 40 + y); + LineTo(hdc, 20 + x, 10 + y); + + // нижний треугольник + MoveToEx(hdc, 20 + x, 30 + y, NULL); + LineTo(hdc, 40 + x, 80 + y); + LineTo(hdc, 0 + x, 80 + y); + LineTo(hdc, 20 + x, 30 + y); +} +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + int wmId = LOWORD(wParam); + // Разобрать выбор в меню: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + // TODO: Добавьте сюда любой код прорисовки, использующий HDC... + int y = 0; + do { + StClausAuto(hdc, 0, y); + y += 90; + } while (y < 300); + + + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Обработчик сообщений для окна "О программе". +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} diff --git a/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.h b/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.h new file mode 100644 index 0000000..b798bf5 --- /dev/null +++ b/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.h @@ -0,0 +1,3 @@ +#pragma once + +#include "resource.h" diff --git a/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.ico b/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn&SNSS4zywZ(O!oQ5+P}ZqDo*iQywp2?H;6m*1FM+v(ik zKuPue2llH<lpzzQC0ZQ&fW!@2| zCA+sBFDXoZ&s`OJt!UeG*-;nSw@IqwS!bgXV{4brPy0l^ru(7V((LEr;MieH9$eol ztF#|gWOnaxM#TNAhX?ycZV#28>t6U2vUhev*6X=!y^Cyctm@*mSw&||2b89k2T12S zs5WPQGwMKAfV2p*(!)o6B2$E!rv#ZHO0PlduB^0pWIyVm*{I^DzUzC8eCW8? z=BFT&pQ;pzy=-=tzc!;ZH7GzD1dQ^-Q+y&NpT{jR`AMZnyl1oX>1)aw`%wjE%C9pb z{^#7`jy{pUx+;`bicdg?AKvS8+Eg+s!X*4ofn?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MLOtR-9K`Fm>Y6QGATRTp>gJSwV%`Fzx{Zo-Y@ ziYGKu$qgWzA>`cxCMaK?jB)XK{+=QBV5H2Qh1f4`!6Gg~*-&1Li}Y%|#kJM9j^q&1 zp+BI_vq*@D_(6RmSK!T!yJ7^jf|Yr`bw$6U?GV_(&KTPdbzfNaX>(}%7D&jP4t;nI_DxZ?| z(%-cqc}B3jUy(CX+st6oMjxZU1H8jHJiCw#Qoxo&tv#1k~eSA4@Xqd?u%CWa?LNF{u)PV{bU>N!iaCHh;Sq1)|n$= z-h=s<`K%G6BwB4|$rvvkXnabFdAe-T#B8>N(VgW_(i+9_jB^=z4pA~18&4x(v%f6! zVk<`{Ya7y1v|ZaNl&d6n>F1&LsrpjLPIh8eOTCQ{Re9P L-=VDcA(ejt6_Dzp literal 0 HcmV?d00001 diff --git a/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.vcxproj b/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.vcxproj new file mode 100644 index 0000000..cb3b025 --- /dev/null +++ b/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.vcxproj @@ -0,0 +1,148 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {04b1b913-f6a7-4c94-8331-2cdbb371b3ee} + My13лаб8 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.vcxproj.filters b/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.vcxproj.filters new file mode 100644 index 0000000..9be56ae --- /dev/null +++ b/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/1.3 лаб 8.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + + + Исходные файлы + + + + + Файлы ресурсов + + + + + Файлы ресурсов + + + Файлы ресурсов + + + \ No newline at end of file diff --git a/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/Resource.h b/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/Resource.h new file mode 100644 index 0000000..6ca9f89 --- /dev/null +++ b/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Включаемый файл, созданный в Microsoft Visual C++. +// Используется 1.3 лаб 8.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MY138_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MY138 107 +#define IDI_SMALL 108 +#define IDC_MY138 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Следующие стандартные значения для новых объектов +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/framework.h b/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/framework.h new file mode 100644 index 0000000..a8f6dc8 --- /dev/null +++ b/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/framework.h @@ -0,0 +1,15 @@ +// header.h: включаемый файл для стандартных системных включаемых файлов +// или включаемые файлы для конкретного проекта +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows +// Файлы заголовков Windows +#include +// Файлы заголовков среды выполнения C +#include +#include +#include +#include diff --git a/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/small.ico b/7, 8 лаб/8/1.3 лаб 8/1.3 лаб 8/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=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e$u6%vBnhYh`JKJ^X30dIm@%cR4NV!^h_-sLCj%(MG2jOv0nn)@vmECyc-1={ z&s^gcd6+VoX+!2h97EW4L-LriA&oYnZCvL;5zvYO@&NSejCI&|T*e1;&eJEeu`x#C z8{5<;gHevUqYWZ@%bcbT(*wux*4qys$-mVVYTwvHddRo9NM047zh39~wJx z9M#W5mix!+@has( zPZ59^AP<0PmqeeQK!-LmX^|IYi1hI^w_Nk*EABj|J^82mp-$bQ5t{yRkgM}HQZ>fc z3*sdZ(};f6Af|-$E0f`+$@t1-s8*?Dh=nSZ5^3Gx?P6kq7>c37L<+@FA(XkR=vNau z1En7Tc~6Ac5i%SuR;)7P_Rmgxa8RG(_1BtfjM--f`=9IcLrc-IVu9EHCBN^1_rLc0 zHMpJwVULHV@)_IzP1U2Re7ydA{NPyNnvh=mXDmQrl zgvC#v#cJ#<57EsKj50Z#^J8#ivG&ywlWS6_Jpec?yx zxj<(;>ygOTy{SG&Uy}1OnAWGOzVZh80(I0nYXN!m`3vV%3^}*Q)`NLg6Mew0=bA?y z*gnBizg*Y9cYJY_@nqfC^oix4Qmc+gMvaf#%Wl+G8F*R8j$Df>NMHP`dl6Do;zmXf zBMwMBvTwC zx39j>7!rS6{Q6h+KReEwlW$7=HK#o`Z)qBF5hqHnq=@mnn;+b+r$5xQ~!YXt>yn zzw>PDchx$4fo*6#2|*s8mGem3Ty4g^FRpu;EMH(-9_R;6+stQlgMS;`*!Kpwm&M#S z)!2z`5*>8z;ozPO>dp2s?lm#@YcS1@5#+)BD<++$T?t@60IfbiU*HAhA^jo~Ren=!kukg)&8SBOE_~-UA>GK&yWsuhIb4Bal23BMSwUQPd=3>6gt zkl&Mem_kO+1$GfTIbpUK diff --git a/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8.sln b/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8.sln new file mode 100644 index 0000000..98276af --- /dev/null +++ b/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "1.4 лаб 8", "1.4 лаб 8\1.4 лаб 8.vcxproj", "{24B7A290-4CA5-455E-A388-C676F31EAB5E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {24B7A290-4CA5-455E-A388-C676F31EAB5E}.Debug|x64.ActiveCfg = Debug|x64 + {24B7A290-4CA5-455E-A388-C676F31EAB5E}.Debug|x64.Build.0 = Debug|x64 + {24B7A290-4CA5-455E-A388-C676F31EAB5E}.Debug|x86.ActiveCfg = Debug|Win32 + {24B7A290-4CA5-455E-A388-C676F31EAB5E}.Debug|x86.Build.0 = Debug|Win32 + {24B7A290-4CA5-455E-A388-C676F31EAB5E}.Release|x64.ActiveCfg = Release|x64 + {24B7A290-4CA5-455E-A388-C676F31EAB5E}.Release|x64.Build.0 = Release|x64 + {24B7A290-4CA5-455E-A388-C676F31EAB5E}.Release|x86.ActiveCfg = Release|Win32 + {24B7A290-4CA5-455E-A388-C676F31EAB5E}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {81EA6AD3-B1DB-4F0E-A09F-5CF10B0D833C} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.cpp b/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.cpp new file mode 100644 index 0000000..c2558eb --- /dev/null +++ b/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.cpp @@ -0,0 +1,207 @@ +// 1.4 лаб 8.cpp : Определяет точку входа для приложения. +// + +#include "framework.h" +#include "1.4 лаб 8.h" + +#define MAX_LOADSTRING 100 + +// Глобальные переменные: +HINSTANCE hInst; // текущий экземпляр +WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка +WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна + +// Отправить объявления функций, включенных в этот модуль кода: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + // TODO: Разместите код здесь. + + // Инициализация глобальных строк + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MY148, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Выполнить инициализацию приложения: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY148)); + + MSG msg; + + // Цикл основного сообщения: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// ФУНКЦИЯ: MyRegisterClass() +// +// ЦЕЛЬ: Регистрирует класс окна. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MY148)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY148); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// ФУНКЦИЯ: InitInstance(HINSTANCE, int) +// +// ЦЕЛЬ: Сохраняет маркер экземпляра и создает главное окно +// +// КОММЕНТАРИИ: +// +// В этой функции маркер экземпляра сохраняется в глобальной переменной, а также +// создается и выводится главное окно программы. +// +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// ЦЕЛЬ: Обрабатывает сообщения в главном окне. +// +// WM_COMMAND - обработать меню приложения +// WM_PAINT - Отрисовка главного окна +// WM_DESTROY - отправить сообщение о выходе и вернуться +// +// +void StClausAuto(HDC hdc, int x, int y) { + // верхний треугольник + MoveToEx(hdc, 20 + x, 0 + y, NULL); + LineTo(hdc, 30 + x, 20 + y); + LineTo(hdc, 10 + x, 20 + y); + LineTo(hdc, 20 + x, 0 + y); + + // средний треугольник + MoveToEx(hdc, 20 + x, 10 + y, NULL); + LineTo(hdc, 30 + x, 40 + y); + LineTo(hdc, 10 + x, 40 + y); + LineTo(hdc, 20 + x, 10 + y); + + // нижний треугольник + MoveToEx(hdc, 20 + x, 30 + y, NULL); + LineTo(hdc, 40 + x, 80 + y); + LineTo(hdc, 0 + x, 80 + y); + LineTo(hdc, 20 + x, 30 + y); +} +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + int wmId = LOWORD(wParam); + // Разобрать выбор в меню: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + // TODO: Добавьте сюда любой код прорисовки, использующий HDC... + int y = 0; + int x = 0; + do { + StClausAuto(hdc, x, y); + y += 100; + x += 50; + } while ((x < 400) && (y <400)); + + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Обработчик сообщений для окна "О программе". +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} diff --git a/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.h b/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.h new file mode 100644 index 0000000..b798bf5 --- /dev/null +++ b/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.h @@ -0,0 +1,3 @@ +#pragma once + +#include "resource.h" diff --git a/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.ico b/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn&SNSS4zywZ(O!oQ5+P}ZqDo*iQywp2?H;6m*1FM+v(ik zKuPue2llH<lpzzQC0ZQ&fW!@2| zCA+sBFDXoZ&s`OJt!UeG*-;nSw@IqwS!bgXV{4brPy0l^ru(7V((LEr;MieH9$eol ztF#|gWOnaxM#TNAhX?ycZV#28>t6U2vUhev*6X=!y^Cyctm@*mSw&||2b89k2T12S zs5WPQGwMKAfV2p*(!)o6B2$E!rv#ZHO0PlduB^0pWIyVm*{I^DzUzC8eCW8? z=BFT&pQ;pzy=-=tzc!;ZH7GzD1dQ^-Q+y&NpT{jR`AMZnyl1oX>1)aw`%wjE%C9pb z{^#7`jy{pUx+;`bicdg?AKvS8+Eg+s!X*4ofn?BwTUi5A9Wt#IhcW`Cp;u~zX&I+$ z6~0HjCOi(CTN{<%GdDz;c&lIU&Wcl8MG?v_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BuI~v)wBSTD37Q>jz7?YR+X~}ZGUFhaA0(yoYl8xx z!aQm|20H(hoGDVC1n`ffa)MjcCGK6<=(q8H2aP4hd>bl`h|VTxsoChghHn>1$Zgsw zVXSFvw|9uIHOQo@n9VEGn%rH+MzU>Qyr;!Jf%fpG>hccqqpDVzPe&bijgH!kDspI| zk{dxbW5~M$ouGWl8KdIU^gToF!AzMa3z3=77c8S9luf0DdCwZMmozrs;<_4JCvphs zFdoq7Stdk{_(5YMG4STbQ`KYxZC&}>Q0;fHod))BGUoPU#gz3S<%=Cg5xK&?wba`V zq}7MjkMJI;{n{*BKD<3%eb$Yaw-oY{F@{iyqZn6_z3@hxjw#MpQBTv}iWHh&OD zZ3d`UaWq@GT1NfyiqB){Dw6lcqvTz5`XVe}Zu#Z2U!y2(pB%$o82N1t8E%ByI%_1X zd$9hpST$mnM6b;%8S|y4=BI?1XUmpN%vVd8-C6x4ZBbm$JeQg07%j80=_~^_|I0Qn zw{mc@z9B6|JGF74TrH_fKcDNL%6~fY+o=4S{}vd`a>>)EA$4gjG%e=54-b2z|3EGN KJCuz+gz_Jd`0A_x literal 0 HcmV?d00001 diff --git a/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.vcxproj b/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.vcxproj new file mode 100644 index 0000000..5f7243a --- /dev/null +++ b/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.vcxproj @@ -0,0 +1,148 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {24b7a290-4ca5-455e-a388-c676f31eab5e} + My14лаб8 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.vcxproj.filters b/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.vcxproj.filters new file mode 100644 index 0000000..074ffb7 --- /dev/null +++ b/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/1.4 лаб 8.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + + + Исходные файлы + + + + + Файлы ресурсов + + + + + Файлы ресурсов + + + Файлы ресурсов + + + \ No newline at end of file diff --git a/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/Resource.h b/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/Resource.h new file mode 100644 index 0000000..ebbd8a9 --- /dev/null +++ b/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Включаемый файл, созданный в Microsoft Visual C++. +// Используется 1.4 лаб 8.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MY148_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MY148 107 +#define IDI_SMALL 108 +#define IDC_MY148 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Следующие стандартные значения для новых объектов +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/framework.h b/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/framework.h new file mode 100644 index 0000000..a8f6dc8 --- /dev/null +++ b/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/framework.h @@ -0,0 +1,15 @@ +// header.h: включаемый файл для стандартных системных включаемых файлов +// или включаемые файлы для конкретного проекта +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows +// Файлы заголовков Windows +#include +// Файлы заголовков среды выполнения C +#include +#include +#include +#include diff --git a/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/small.ico b/7, 8 лаб/8/1.4 лаб 8/1.4 лаб 8/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR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l&Mem_kO+1$GfTIbpUK diff --git a/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8.sln b/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8.sln new file mode 100644 index 0000000..6422325 --- /dev/null +++ b/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2.1 лаб 8", "2.1 лаб 8\2.1 лаб 8.vcxproj", "{0319BD61-0C16-458F-8504-A257ECBCDFA5}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0319BD61-0C16-458F-8504-A257ECBCDFA5}.Debug|x64.ActiveCfg = Debug|x64 + {0319BD61-0C16-458F-8504-A257ECBCDFA5}.Debug|x64.Build.0 = Debug|x64 + {0319BD61-0C16-458F-8504-A257ECBCDFA5}.Debug|x86.ActiveCfg = Debug|Win32 + {0319BD61-0C16-458F-8504-A257ECBCDFA5}.Debug|x86.Build.0 = Debug|Win32 + {0319BD61-0C16-458F-8504-A257ECBCDFA5}.Release|x64.ActiveCfg = Release|x64 + {0319BD61-0C16-458F-8504-A257ECBCDFA5}.Release|x64.Build.0 = Release|x64 + {0319BD61-0C16-458F-8504-A257ECBCDFA5}.Release|x86.ActiveCfg = Release|Win32 + {0319BD61-0C16-458F-8504-A257ECBCDFA5}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E6A0C30D-A0A5-4898-9876-2DD5216B1A52} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.cpp b/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.cpp new file mode 100644 index 0000000..4d03ab9 --- /dev/null +++ b/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.cpp @@ -0,0 +1,204 @@ +// 2.1 лаб 8.cpp : Определяет точку входа для приложения. +// + +#include "framework.h" +#include "2.1 лаб 8.h" + +#define MAX_LOADSTRING 100 + +// Глобальные переменные: +HINSTANCE hInst; // текущий экземпляр +WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка +WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна + +// Отправить объявления функций, включенных в этот модуль кода: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + // TODO: Разместите код здесь. + + // Инициализация глобальных строк + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MY218, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Выполнить инициализацию приложения: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY218)); + + MSG msg; + + // Цикл основного сообщения: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// ФУНКЦИЯ: MyRegisterClass() +// +// ЦЕЛЬ: Регистрирует класс окна. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MY218)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY218); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// ФУНКЦИЯ: InitInstance(HINSTANCE, int) +// +// ЦЕЛЬ: Сохраняет маркер экземпляра и создает главное окно +// +// КОММЕНТАРИИ: +// +// В этой функции маркер экземпляра сохраняется в глобальной переменной, а также +// создается и выводится главное окно программы. +// +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// ЦЕЛЬ: Обрабатывает сообщения в главном окне. +// +// WM_COMMAND - обработать меню приложения +// WM_PAINT - Отрисовка главного окна +// WM_DESTROY - отправить сообщение о выходе и вернуться +// +// +void drawTruck(HDC hdc, int x, int y) { + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(0, 0, 200)); + SelectObject(hdc, hPen); + + Rectangle(hdc, 0 + x, 30 + y, 40 + x, 50 + y); + Rectangle(hdc, 10 + x, 10 + y, 40 + x, 30 + y); + Rectangle(hdc, 40 + x, 0 + y, 100 + x, 50 + y); + + hPen = CreatePen(PS_SOLID, 3, RGB(100, 0, 0)); + SelectObject(hdc, hPen); + + Ellipse(hdc, 10 + x, 40 + y, 30 + x, 60 + y); + Ellipse(hdc, 70 + x, 40 + y, 90 + x, 60 + y); +} + +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + int wmId = LOWORD(wParam); + // Разобрать выбор в меню: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + // TODO: Добавьте сюда любой код прорисовки, использующий HDC... + + int y = 10; + int x = 50; + do { + drawTruck(hdc, x, y); + x += 150; + y += 150; + } while ((x < 300) && (y < 300)); + + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Обработчик сообщений для окна "О программе". +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} diff --git a/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.h b/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.h new file mode 100644 index 0000000..b798bf5 --- /dev/null +++ b/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.h @@ -0,0 +1,3 @@ +#pragma once + +#include "resource.h" diff --git a/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.ico b/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn&SNSS4zywZ(O!oQ5+P}ZqDo*iQywp2?H;6m*1FM+v(ik zKuPue2llH<lpzzQC0ZQ&fW!@2| zCA+sBFDXoZ&s`OJt!UeG*-;nSw@IqwS!bgXV{4brPy0l^ru(7V((LEr;MieH9$eol ztF#|gWOnaxM#TNAhX?ycZV#28>t6U2vUhev*6X=!y^Cyctm@*mSw&||2b89k2T12S zs5WPQGwMKAfV2p*(!)o6B2$E!rv#ZHO0PlduB^0pWIyVm*{I^DzUzC8eCW8? z=BFT&pQ;pzy=-=tzc!;ZH7GzD1dQ^-Q+y&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b@Yeu$UEw%J36C^Z(r6il5=;_7NJI8PKrHU zEA~in8(*8#9>+-{O9X#U{y4jXa?e}GlkiUd$QR?rHhMO6bfkRM&_ez~@LBg-sKpo+ zgBE3V(SR$_2Xuj&K74fuR7Ai=`qu>x>Cw||t{!0gDrWey4L+(^A;LGK(e*TL80`_L z$BN^5D(RL*Yu(E48qcm~*09|w7jlgoHD>hChs6$HyPSQ1dPk!S zziiir(9IAdhG+?7S$=^gUO@9MZriB*xz=l|bTyXsmC_^NcUfA%R1LJ~FBbpEeIML2 z7LrbyN6O%0n$ei$`Uxz7b`q+^eJ$_H^7GUxXfLF@qjtLrhkdw$jb%0 z?dvMUOtRlansK;^v04MOx>F6(qhyg5KoiCK{gx~KzcKIwbYIbk!FUqlsl#FzQyF9O z(9q22i6{C~cmzfcYT-!F7Hp}gZrr;no73+NL<&;nec?Fn5` zz^Cv$H5&t+|4L+vbWZ~KM{+sBt?Cl@t}E1=c)tf?xnjNz6-Pv86SUN9^j^WYizM7_ z+9_$QAWql*do#|jfb)v3Y+jkxx5AYtS{aPZMVzL+6*)9q`68!J&yOC;!*in%FnHxtDhw8L_horAGCtA zw?#RatUk|?Jvv9uCVScr)NW@pg8}kQ`I)BxG>YgX`KaPCE+fWVWPVO@QQoMS>U?f9 zK)#Bt+04}Q0VzSke5?;`1oR{46%FQ5GyM`` + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {0319bd61-0c16-458f-8504-a257ecbcdfa5} + My21лаб8 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.vcxproj.filters b/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.vcxproj.filters new file mode 100644 index 0000000..a707c9e --- /dev/null +++ b/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/2.1 лаб 8.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + + + Исходные файлы + + + + + Файлы ресурсов + + + + + Файлы ресурсов + + + Файлы ресурсов + + + \ No newline at end of file diff --git a/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/Resource.h b/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/Resource.h new file mode 100644 index 0000000..e2d3757 --- /dev/null +++ b/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Включаемый файл, созданный в Microsoft Visual C++. +// Используется 2.1 лаб 8.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MY218_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MY218 107 +#define IDI_SMALL 108 +#define IDC_MY218 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Следующие стандартные значения для новых объектов +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/framework.h b/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/framework.h new file mode 100644 index 0000000..a8f6dc8 --- /dev/null +++ b/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/framework.h @@ -0,0 +1,15 @@ +// header.h: включаемый файл для стандартных системных включаемых файлов +// или включаемые файлы для конкретного проекта +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows +// Файлы заголовков Windows +#include +// Файлы заголовков среды выполнения C +#include +#include +#include +#include diff --git a/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/small.ico b/7, 8 лаб/8/2.1 лаб 8/2.1 лаб 8/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVx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sln new file mode 100644 index 0000000..57dcb5d --- /dev/null +++ b/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2.2 лаб 8", "2.2 лаб 8\2.2 лаб 8.vcxproj", "{E566A803-E25E-47A6-98B9-633E7B1FB9F2}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E566A803-E25E-47A6-98B9-633E7B1FB9F2}.Debug|x64.ActiveCfg = Debug|x64 + {E566A803-E25E-47A6-98B9-633E7B1FB9F2}.Debug|x64.Build.0 = Debug|x64 + {E566A803-E25E-47A6-98B9-633E7B1FB9F2}.Debug|x86.ActiveCfg = Debug|Win32 + {E566A803-E25E-47A6-98B9-633E7B1FB9F2}.Debug|x86.Build.0 = Debug|Win32 + {E566A803-E25E-47A6-98B9-633E7B1FB9F2}.Release|x64.ActiveCfg = Release|x64 + {E566A803-E25E-47A6-98B9-633E7B1FB9F2}.Release|x64.Build.0 = Release|x64 + {E566A803-E25E-47A6-98B9-633E7B1FB9F2}.Release|x86.ActiveCfg = Release|Win32 + {E566A803-E25E-47A6-98B9-633E7B1FB9F2}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {56FECAC9-3528-4014-9ABD-39E7332C7CC2} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.cpp b/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.cpp new file mode 100644 index 0000000..4898341 --- /dev/null +++ b/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.cpp @@ -0,0 +1,204 @@ +// 2.2 лаб 8.cpp : Определяет точку входа для приложения. +// + +#include "framework.h" +#include "2.2 лаб 8.h" + +#define MAX_LOADSTRING 100 + +// Глобальные переменные: +HINSTANCE hInst; // текущий экземпляр +WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка +WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна + +// Отправить объявления функций, включенных в этот модуль кода: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + // TODO: Разместите код здесь. + + // Инициализация глобальных строк + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MY228, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Выполнить инициализацию приложения: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY228)); + + MSG msg; + + // Цикл основного сообщения: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// ФУНКЦИЯ: MyRegisterClass() +// +// ЦЕЛЬ: Регистрирует класс окна. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MY228)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY228); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// ФУНКЦИЯ: InitInstance(HINSTANCE, int) +// +// ЦЕЛЬ: Сохраняет маркер экземпляра и создает главное окно +// +// КОММЕНТАРИИ: +// +// В этой функции маркер экземпляра сохраняется в глобальной переменной, а также +// создается и выводится главное окно программы. +// + +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// ЦЕЛЬ: Обрабатывает сообщения в главном окне. +// +// WM_COMMAND - обработать меню приложения +// WM_PAINT - Отрисовка главного окна +// WM_DESTROY - отправить сообщение о выходе и вернуться +// +// +void drawTruck(HDC hdc, int x, int y) { + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(0, 0, 200)); + SelectObject(hdc, hPen); + + Rectangle(hdc, 0 + x, 30 + y, 40 + x, 50 + y); + Rectangle(hdc, 10 + x, 10 + y, 40 + x, 30 + y); + Rectangle(hdc, 40 + x, 0 + y, 100 + x, 50 + y); + + hPen = CreatePen(PS_SOLID, 3, RGB(100, 0, 0)); + SelectObject(hdc, hPen); + + Ellipse(hdc, 10 + x, 40 + y, 30 + x, 60 + y); + Ellipse(hdc, 70 + x, 40 + y, 90 + x, 60 + y); +} +void drawTrucks1(HDC hdc) { + drawTruck(hdc, 10, 10); + drawTruck(hdc, 10, 310); + drawTruck(hdc, 310, 10); + drawTruck(hdc, 310, 310); + drawTruck(hdc, 160, 160); +} +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + int wmId = LOWORD(wParam); + // Разобрать выбор в меню: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + // TODO: Добавьте сюда любой код прорисовки, использующий HDC... + + drawTrucks1(hdc); + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Обработчик сообщений для окна "О программе". +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} diff --git a/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.h b/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.h new file mode 100644 index 0000000..b798bf5 --- /dev/null +++ b/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.h @@ -0,0 +1,3 @@ +#pragma once + +#include "resource.h" diff --git a/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.ico b/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn&SNSS4zywZ(O!oQ5+P}ZqDo*iQywp2?H;6m*1FM+v(ik zKuPue2llH<lpzzQC0ZQ&fW!@2| zCA+sBFDXoZ&s`OJt!UeG*-;nSw@IqwS!bgXV{4brPy0l^ru(7V((LEr;MieH9$eol ztF#|gWOnaxM#TNAhX?ycZV#28>t6U2vUhev*6X=!y^Cyctm@*mSw&||2b89k2T12S zs5WPQGwMKAfV2p*(!)o6B2$E!rv#ZHO0PlduB^0pWIyVm*{I^DzUzC8eCW8? z=BFT&pQ;pzy=-=tzc!;ZH7GzD1dQ^-Q+y&NpT{jR`AMZnyl1oX>1)aw`%wjE%C9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/dev/null +++ b/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.vcxproj @@ -0,0 +1,148 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {e566a803-e25e-47a6-98b9-633e7b1fb9f2} + My22лаб8 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.vcxproj.filters b/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.vcxproj.filters new file mode 100644 index 0000000..860ac11 --- /dev/null +++ b/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/2.2 лаб 8.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + + + Исходные файлы + + + + + Файлы ресурсов + + + + + Файлы ресурсов + + + Файлы ресурсов + + + \ No newline at end of file diff --git a/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/Resource.h b/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/Resource.h new file mode 100644 index 0000000..f5f5b49 --- /dev/null +++ b/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Включаемый файл, созданный в Microsoft Visual C++. +// Используется 2.2 лаб 8.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MY228_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MY228 107 +#define IDI_SMALL 108 +#define IDC_MY228 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Следующие стандартные значения для новых объектов +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/framework.h b/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/framework.h new file mode 100644 index 0000000..a8f6dc8 --- /dev/null +++ b/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/framework.h @@ -0,0 +1,15 @@ +// header.h: включаемый файл для стандартных системных включаемых файлов +// или включаемые файлы для конкретного проекта +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows +// Файлы заголовков Windows +#include +// Файлы заголовков среды выполнения C +#include +#include +#include +#include diff --git a/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/small.ico b/7, 8 лаб/8/2.2 лаб 8/2.2 лаб 8/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn&SNSS4zywZ(O!oQ5+P}ZqDo*iQywp2?H;6m*1FM+v(ik zKuPue2llH<lpzzQC0ZQ&fW!@2| zCA+sBFDXoZ&s`OJt!UeG*-;nSw@IqwS!bgXV{4brPy0l^ru(7V((LEr;MieH9$eol ztF#|gWOnaxM#TNAhX?ycZV#28>t6U2vUhev*6X=!y^Cyctm@*mSw&||2b89k2T12S zs5WPQGwMKAfV2p*(!)o6B2$E!rv#ZHO0PlduB^0pWIyVm*{I^DzUzC8eCW8? z=BFT&pQ;pzy=-=tzc!;ZH7GzD1dQ^-Q+y&NpT{jR`AMZnyl1oX>1)aw`%wjE%C9pb z{^#7`jy{pUx+;`bicdg?AKvS8+Eg+s!X*4ofn?BwTUi5A9Wt#IhcW`Cp;u~zX&I+$ z6~0HjCOi(CTN{<%GdDz;c&lIU&Wcl8MG?v_mEWu%n^Nd_qUfnFly0f|W~(eABVuOa zHt$DAeIrLYsMenG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Bizg*Y9cYJY_@nqfC^oix4Qmc+gMvaf#%Wl+G8F*R8j$Df>NMHP`dl6Do;zmXf zBMwMBvTwC zx39j>7!rS6{Q6h+KReEwlW$7=HK#o`Z)qBF5hqHnq=@mnn;+b+r$5xQ~!YXt>yn zzw>PDchx$4fo*6#2|*s8mGem3Ty4g^FRpu;EMH(-9_R;6+stQlgMS;`*!Kpwm&M#S z)!2z`5*>8z;ozPO>dp2s?lm#@YcS1@5#+)BD<++$T?t@60IfbiU*HAhA^jo~Ren=!kukg)&8SBOE_~-UA>GK&yWsuhIb4Bal23BMSwUQPd=3>6gt zkl&Mem_kO+1$GfTIbpUK diff --git a/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8.sln b/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8.sln new file mode 100644 index 0000000..d6503f5 --- /dev/null +++ b/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2.3 лаб 8", "2.3 лаб 8\2.3 лаб 8.vcxproj", "{08DEEE99-3075-49E9-9523-098CBF99D446}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {08DEEE99-3075-49E9-9523-098CBF99D446}.Debug|x64.ActiveCfg = Debug|x64 + {08DEEE99-3075-49E9-9523-098CBF99D446}.Debug|x64.Build.0 = Debug|x64 + {08DEEE99-3075-49E9-9523-098CBF99D446}.Debug|x86.ActiveCfg = Debug|Win32 + {08DEEE99-3075-49E9-9523-098CBF99D446}.Debug|x86.Build.0 = Debug|Win32 + {08DEEE99-3075-49E9-9523-098CBF99D446}.Release|x64.ActiveCfg = Release|x64 + {08DEEE99-3075-49E9-9523-098CBF99D446}.Release|x64.Build.0 = Release|x64 + {08DEEE99-3075-49E9-9523-098CBF99D446}.Release|x86.ActiveCfg = Release|Win32 + {08DEEE99-3075-49E9-9523-098CBF99D446}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {651E2239-673E-40B1-BBC2-159ADEC105FC} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.cpp b/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.cpp new file mode 100644 index 0000000..642d594 --- /dev/null +++ b/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.cpp @@ -0,0 +1,203 @@ +// 2.3 лаб 8.cpp : Определяет точку входа для приложения. +// + +#include "framework.h" +#include "2.3 лаб 8.h" + +#define MAX_LOADSTRING 100 + +// Глобальные переменные: +HINSTANCE hInst; // текущий экземпляр +WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка +WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна + +// Отправить объявления функций, включенных в этот модуль кода: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + // TODO: Разместите код здесь. + + // Инициализация глобальных строк + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MY238, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Выполнить инициализацию приложения: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY238)); + + MSG msg; + + // Цикл основного сообщения: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// ФУНКЦИЯ: MyRegisterClass() +// +// ЦЕЛЬ: Регистрирует класс окна. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MY238)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY238); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// ФУНКЦИЯ: InitInstance(HINSTANCE, int) +// +// ЦЕЛЬ: Сохраняет маркер экземпляра и создает главное окно +// +// КОММЕНТАРИИ: +// +// В этой функции маркер экземпляра сохраняется в глобальной переменной, а также +// создается и выводится главное окно программы. +// +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// ЦЕЛЬ: Обрабатывает сообщения в главном окне. +// +// WM_COMMAND - обработать меню приложения +// WM_PAINT - Отрисовка главного окна +// WM_DESTROY - отправить сообщение о выходе и вернуться +// +// +void drawTruck(HDC hdc, int x, int y) { + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(0, 0, 200)); + SelectObject(hdc, hPen); + + Rectangle(hdc, 0 + x, 30 + y, 40 + x, 50 + y); + Rectangle(hdc, 10 + x, 10 + y, 40 + x, 30 + y); + Rectangle(hdc, 40 + x, 0 + y, 100 + x, 50 + y); + + hPen = CreatePen(PS_SOLID, 3, RGB(100, 0, 0)); + SelectObject(hdc, hPen); + + Ellipse(hdc, 10 + x, 40 + y, 30 + x, 60 + y); + Ellipse(hdc, 70 + x, 40 + y, 90 + x, 60 + y); +} +void drawTrucks2(HDC hdc) { + drawTruck(hdc, 20, 20); + drawTruck(hdc, 140, 20); + drawTruck(hdc, 260, 20); + drawTruck(hdc, 380, 20); + drawTruck(hdc, 500, 20); +} +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + int wmId = LOWORD(wParam); + // Разобрать выбор в меню: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + // TODO: Добавьте сюда любой код прорисовки, использующий HDC... + drawTrucks2(hdc); + + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Обработчик сообщений для окна "О программе". +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} diff --git a/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.h b/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.h new file mode 100644 index 0000000..b798bf5 --- /dev/null +++ b/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.h @@ -0,0 +1,3 @@ +#pragma once + +#include "resource.h" diff --git a/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.ico b/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuW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Z?uW;{O{1-$C{j^%(RgA)Y!khCY=( zCJznGjGP$JpTZ*0b5IIL8e6cXqOx)Cs%%cbH{dBqmG^}+MG)tXKyw5%jS>6M!;CSX z5svHWqphjb+ln_@sdRrEYoDTxqtEcTzF(DU+P;vYYi)qq5UcRELVuR@I0|M5$?5Fa zpunauo|^T6&VD6(iu6nZ*hg|X!ma8O_pU3{n|QwmV!2|z4i$SurxVoFtoL5QxAP=C zZR#m$tRUX2{r3*>wF1s7y0TeiYLmOmSWC9d^Y_%)CqNHxsxI!R;yfy|ke%?T5OrtPLrj?=X&dDy&;c z+_oUCF0_7t_dxa6dRg+}?Q!y;8!vAuJWKi*Qso-OYZd7WZ?tKj;%pUhnzmNt&~TMc z$$IJU+K@aWSl+M58L4e%uxX=@(cb}H=Eqlowe{RNMAh(~^tl^{!~WciIuMuMSAwsk zmd+9w&y;OmK4(5B@i@5}j>=bZKUrj(1?1k7Y)*Py6=zjEDj!SvxwUh(lcb%&TrJ{$amME{d=<%?H|U2Ws%ZB`t9-fUmrs9M0w^c;A5pwIy zkudMU{L6gSh*1))HnU`mmku;OCB-~lwrFBDTf*qh@+WDH;&{fnj68=Z8I6sn5wO`` zmU*$2qm#7_X(`&S?G(yYlDqWtQ2SK=-SNDQ%dh!wfzd3NJdGQ2mqwwXnEgI1?6v*_ MHUIBW*87mkzmXK`tN;K2 literal 0 HcmV?d00001 diff --git a/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.vcxproj b/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.vcxproj new file mode 100644 index 0000000..0771f3a --- /dev/null +++ b/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.vcxproj @@ -0,0 +1,148 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {08deee99-3075-49e9-9523-098cbf99d446} + My23лаб8 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.vcxproj.filters b/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.vcxproj.filters new file mode 100644 index 0000000..c4c8a9b --- /dev/null +++ b/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/2.3 лаб 8.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + + + Исходные файлы + + + + + Файлы ресурсов + + + + + Файлы ресурсов + + + Файлы ресурсов + + + \ No newline at end of file diff --git a/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/Resource.h b/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/Resource.h new file mode 100644 index 0000000..1100e1d --- /dev/null +++ b/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Включаемый файл, созданный в Microsoft Visual C++. +// Используется 2.3 лаб 8.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MY238_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MY238 107 +#define IDI_SMALL 108 +#define IDC_MY238 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Следующие стандартные значения для новых объектов +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/framework.h b/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/framework.h new file mode 100644 index 0000000..a8f6dc8 --- /dev/null +++ b/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/framework.h @@ -0,0 +1,15 @@ +// header.h: включаемый файл для стандартных системных включаемых файлов +// или включаемые файлы для конкретного проекта +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows +// Файлы заголовков Windows +#include +// Файлы заголовков среды выполнения C +#include +#include +#include +#include diff --git a/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/small.ico b/7, 8 лаб/8/2.3.1 лаб 8/2.3 лаб 8/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o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g^FRpu;EMH(-9_R;6+stQlgMS;`*!Kpwm&M#S z)!2z`5*>8z;ozPO>dp2s?lm#@YcS1@5#+)BD<++$T?t@60IfbiU*HAhA^jo~Ren=!kukg)&8SBOE_~-UA>GK&yWsuhIb4Bal23BMSwUQPd=3>6gt zkl&Mem_kO+1$GfTIbpUK diff --git a/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8.sln b/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8.sln new file mode 100644 index 0000000..201d1ad --- /dev/null +++ b/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2.3.2 лаб 8", "2.3.2 лаб 8\2.3.2 лаб 8.vcxproj", "{1F4BD7DA-70FE-41A4-A2A5-B57368CD088A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1F4BD7DA-70FE-41A4-A2A5-B57368CD088A}.Debug|x64.ActiveCfg = Debug|x64 + {1F4BD7DA-70FE-41A4-A2A5-B57368CD088A}.Debug|x64.Build.0 = Debug|x64 + {1F4BD7DA-70FE-41A4-A2A5-B57368CD088A}.Debug|x86.ActiveCfg = Debug|Win32 + {1F4BD7DA-70FE-41A4-A2A5-B57368CD088A}.Debug|x86.Build.0 = Debug|Win32 + {1F4BD7DA-70FE-41A4-A2A5-B57368CD088A}.Release|x64.ActiveCfg = Release|x64 + {1F4BD7DA-70FE-41A4-A2A5-B57368CD088A}.Release|x64.Build.0 = Release|x64 + {1F4BD7DA-70FE-41A4-A2A5-B57368CD088A}.Release|x86.ActiveCfg = Release|Win32 + {1F4BD7DA-70FE-41A4-A2A5-B57368CD088A}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {291A4D3D-D4E5-42E0-8EA1-2768DE4FD063} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.cpp b/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.cpp new file mode 100644 index 0000000..68963a1 --- /dev/null +++ b/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.cpp @@ -0,0 +1,203 @@ +// 2.3.2 лаб 8.cpp : Определяет точку входа для приложения. +// + +#include "framework.h" +#include "2.3.2 лаб 8.h" + +#define MAX_LOADSTRING 100 + +// Глобальные переменные: +HINSTANCE hInst; // текущий экземпляр +WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка +WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна + +// Отправить объявления функций, включенных в этот модуль кода: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + // TODO: Разместите код здесь. + + // Инициализация глобальных строк + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MY2328, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Выполнить инициализацию приложения: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY2328)); + + MSG msg; + + // Цикл основного сообщения: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// ФУНКЦИЯ: MyRegisterClass() +// +// ЦЕЛЬ: Регистрирует класс окна. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MY2328)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY2328); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// ФУНКЦИЯ: InitInstance(HINSTANCE, int) +// +// ЦЕЛЬ: Сохраняет маркер экземпляра и создает главное окно +// +// КОММЕНТАРИИ: +// +// В этой функции маркер экземпляра сохраняется в глобальной переменной, а также +// создается и выводится главное окно программы. +// +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// ЦЕЛЬ: Обрабатывает сообщения в главном окне. +// +// WM_COMMAND - обработать меню приложения +// WM_PAINT - Отрисовка главного окна +// WM_DESTROY - отправить сообщение о выходе и вернуться +// +// +void drawTruck(HDC hdc, int x, int y) { + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(0, 0, 200)); + SelectObject(hdc, hPen); + + Rectangle(hdc, 0 + x, 30 + y, 40 + x, 50 + y); + Rectangle(hdc, 10 + x, 10 + y, 40 + x, 30 + y); + Rectangle(hdc, 40 + x, 0 + y, 100 + x, 50 + y); + + hPen = CreatePen(PS_SOLID, 3, RGB(100, 0, 0)); + SelectObject(hdc, hPen); + + Ellipse(hdc, 10 + x, 40 + y, 30 + x, 60 + y); + Ellipse(hdc, 70 + x, 40 + y, 90 + x, 60 + y); +} +void drawTrucks3(HDC hdc) { + drawTruck(hdc, 20, 20); + drawTruck(hdc, 20, 100); + drawTruck(hdc, 20, 180); + drawTruck(hdc, 20, 260); + drawTruck(hdc, 20, 340); +} +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + int wmId = LOWORD(wParam); + // Разобрать выбор в меню: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + // TODO: Добавьте сюда любой код прорисовки, использующий HDC... + drawTrucks3(hdc); + + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Обработчик сообщений для окна "О программе". +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} diff --git a/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.h b/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.h new file mode 100644 index 0000000..b798bf5 --- /dev/null +++ b/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.h @@ -0,0 +1,3 @@ +#pragma once + +#include "resource.h" diff --git a/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.ico b/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`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 diff --git a/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.vcxproj b/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.vcxproj new file mode 100644 index 0000000..f16d500 --- /dev/null +++ b/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.vcxproj @@ -0,0 +1,148 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {1f4bd7da-70fe-41a4-a2a5-b57368cd088a} + My232лаб8 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.vcxproj.filters b/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.vcxproj.filters new file mode 100644 index 0000000..01cfa5a --- /dev/null +++ b/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/2.3.2 лаб 8.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + + + Исходные файлы + + + + + Файлы ресурсов + + + + + Файлы ресурсов + + + Файлы ресурсов + + + \ No newline at end of file diff --git a/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/Resource.h b/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/Resource.h new file mode 100644 index 0000000..5acd38c --- /dev/null +++ b/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Включаемый файл, созданный в Microsoft Visual C++. +// Используется 2.3.2 лаб 8.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MY2328_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MY2328 107 +#define IDI_SMALL 108 +#define IDC_MY2328 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Следующие стандартные значения для новых объектов +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/framework.h b/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/framework.h new file mode 100644 index 0000000..a8f6dc8 --- /dev/null +++ b/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/framework.h @@ -0,0 +1,15 @@ +// header.h: включаемый файл для стандартных системных включаемых файлов +// или включаемые файлы для конкретного проекта +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows +// Файлы заголовков Windows +#include +// Файлы заголовков среды выполнения C +#include +#include +#include +#include diff --git a/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/small.ico b/7, 8 лаб/8/2.3.2 лаб 8/2.3.2 лаб 8/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn&SNSS4zywZ(O!oQ5+P}ZqDo*iQywp2?H;6m*1FM+v(ik zKuPue2llH<lpzzQC0ZQ&fW!@2| zCA+sBFDXoZ&s`OJt!UeG*-;nSw@IqwS!bgXV{4brPy0l^ru(7V((LEr;MieH9$eol ztF#|gWOnaxM#TNAhX?ycZV#28>t6U2vUhev*6X=!y^Cyctm@*mSw&||2b89k2T12S zs5WPQGwMKAfV2p*(!)o6B2$E!rv#ZHO0PlduB^0pWIyVm*{I^DzUzC8eCW8? z=BFT&pQ;pzy=-=tzc!;ZH7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a8RG(_1BtfjM--f`=9IcLrc-IVu9EHCBN^1_rLc0 zHMpJwVULHV@)_IzP1U2Re7ydA{NPyNnvh=mXDmQrl zgvC#v#cJ#<57EsKj50Z#^J8#ivG&ywlWS6_Jpec?yx zxj<(;>ygOTy{SG&Uy}1OnAWGOzVZh80(I0nYXN!m`3vV%3^}*Q)`NLg6Mew0=bA?y z*gnBizg*Y9cYJY_@nqfC^oix4Qmc+gMvaf#%Wl+G8F*R8j$Df>NMHP`dl6Do;zmXf zBMwMBvTwC zx39j>7!rS6{Q6h+KReEwlW$7=HK#o`Z)qBF5hqHnq=@mnn;+b+r$5xQ~!YXt>yn zzw>PDchx$4fo*6#2|*s8mGem3Ty4g^FRpu;EMH(-9_R;6+stQlgMS;`*!Kpwm&M#S z)!2z`5*>8z;ozPO>dp2s?lm#@YcS1@5#+)BD<++$T?t@60IfbiU*HAhA^jo~Ren=!kukg)&8SBOE_~-UA>GK&yWsuhIb4Bal23BMSwUQPd=3>6gt zkl&Mem_kO+1$GfTIbpUK diff --git a/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8.sln b/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8.sln new file mode 100644 index 0000000..79326a5 --- /dev/null +++ b/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2.3.3 лаб 8", "2.3.3 лаб 8\2.3.3 лаб 8.vcxproj", "{F993CF93-F7A4-4C80-A838-CB00F0C6C406}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F993CF93-F7A4-4C80-A838-CB00F0C6C406}.Debug|x64.ActiveCfg = Debug|x64 + {F993CF93-F7A4-4C80-A838-CB00F0C6C406}.Debug|x64.Build.0 = Debug|x64 + {F993CF93-F7A4-4C80-A838-CB00F0C6C406}.Debug|x86.ActiveCfg = Debug|Win32 + {F993CF93-F7A4-4C80-A838-CB00F0C6C406}.Debug|x86.Build.0 = Debug|Win32 + {F993CF93-F7A4-4C80-A838-CB00F0C6C406}.Release|x64.ActiveCfg = Release|x64 + {F993CF93-F7A4-4C80-A838-CB00F0C6C406}.Release|x64.Build.0 = Release|x64 + {F993CF93-F7A4-4C80-A838-CB00F0C6C406}.Release|x86.ActiveCfg = Release|Win32 + {F993CF93-F7A4-4C80-A838-CB00F0C6C406}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B26470D5-6C1F-4342-A42A-AFF5BBE7C471} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.cpp b/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.cpp new file mode 100644 index 0000000..288dd07 --- /dev/null +++ b/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.cpp @@ -0,0 +1,203 @@ +// 2.3.3 лаб 8.cpp : Определяет точку входа для приложения. +// + +#include "framework.h" +#include "2.3.3 лаб 8.h" + +#define MAX_LOADSTRING 100 + +// Глобальные переменные: +HINSTANCE hInst; // текущий экземпляр +WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка +WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна + +// Отправить объявления функций, включенных в этот модуль кода: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + // TODO: Разместите код здесь. + + // Инициализация глобальных строк + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MY2338, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Выполнить инициализацию приложения: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY2338)); + + MSG msg; + + // Цикл основного сообщения: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// ФУНКЦИЯ: MyRegisterClass() +// +// ЦЕЛЬ: Регистрирует класс окна. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MY2338)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY2338); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// ФУНКЦИЯ: InitInstance(HINSTANCE, int) +// +// ЦЕЛЬ: Сохраняет маркер экземпляра и создает главное окно +// +// КОММЕНТАРИИ: +// +// В этой функции маркер экземпляра сохраняется в глобальной переменной, а также +// создается и выводится главное окно программы. +// +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// ЦЕЛЬ: Обрабатывает сообщения в главном окне. +// +// WM_COMMAND - обработать меню приложения +// WM_PAINT - Отрисовка главного окна +// WM_DESTROY - отправить сообщение о выходе и вернуться +// +// +void drawTruck(HDC hdc, int x, int y) { + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(0, 0, 200)); + SelectObject(hdc, hPen); + + Rectangle(hdc, 0 + x, 30 + y, 40 + x, 50 + y); + Rectangle(hdc, 10 + x, 10 + y, 40 + x, 30 + y); + Rectangle(hdc, 40 + x, 0 + y, 100 + x, 50 + y); + + hPen = CreatePen(PS_SOLID, 3, RGB(100, 0, 0)); + SelectObject(hdc, hPen); + + Ellipse(hdc, 10 + x, 40 + y, 30 + x, 60 + y); + Ellipse(hdc, 70 + x, 40 + y, 90 + x, 60 + y); +} +void drawTrucks4(HDC hdc) { + drawTruck(hdc, 20, 20); + drawTruck(hdc, 150, 100); + drawTruck(hdc, 270, 185); + drawTruck(hdc, 390, 270); + drawTruck(hdc, 510, 350); +} +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + int wmId = LOWORD(wParam); + // Разобрать выбор в меню: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + // TODO: Добавьте сюда любой код прорисовки, использующий HDC... + drawTrucks4(hdc); + + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Обработчик сообщений для окна "О программе". +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} diff --git a/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.h b/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.h new file mode 100644 index 0000000..b798bf5 --- /dev/null +++ b/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.h @@ -0,0 +1,3 @@ +#pragma once + +#include "resource.h" diff --git a/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.ico b/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5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Zr-n}gha0iut8x?>?5uN0Ys(6gMCFA{M{ypQOyQE^O z^Y@(r?y%UJz0F!A{o-4o$H-NrZ=R)WE;-K$aL$-btBxj z^WKDaA-t2Bze!@IM6b=8Gv-WtnyHdvo-JE8F@J-?EHAlLNm~`?FzaO=I!4K?Y&y$_ z%?GnA%CQ`+tdB@*(^hZ0QLd8GrQe78sq(Lm`)yKw&3_V%X1Vlf(oniI3JuBZ_u*-; P^xvuZe~z+Ih*bUsZyD`k literal 0 HcmV?d00001 diff --git a/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.vcxproj b/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.vcxproj new file mode 100644 index 0000000..636c483 --- /dev/null +++ b/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.vcxproj @@ -0,0 +1,148 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {f993cf93-f7a4-4c80-a838-cb00f0c6c406} + My233лаб8 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.vcxproj.filters b/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.vcxproj.filters new file mode 100644 index 0000000..11088a2 --- /dev/null +++ b/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/2.3.3 лаб 8.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + + + Исходные файлы + + + + + Файлы ресурсов + + + + + Файлы ресурсов + + + Файлы ресурсов + + + \ No newline at end of file diff --git a/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/Resource.h b/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/Resource.h new file mode 100644 index 0000000..eaa5a33 --- /dev/null +++ b/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Включаемый файл, созданный в Microsoft Visual C++. +// Используется 2.3.3 лаб 8.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MY2338_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MY2338 107 +#define IDI_SMALL 108 +#define IDC_MY2338 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Следующие стандартные значения для новых объектов +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/framework.h b/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/framework.h new file mode 100644 index 0000000..a8f6dc8 --- /dev/null +++ b/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/framework.h @@ -0,0 +1,15 @@ +// header.h: включаемый файл для стандартных системных включаемых файлов +// или включаемые файлы для конкретного проекта +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows +// Файлы заголовков Windows +#include +// Файлы заголовков среды выполнения C +#include +#include +#include +#include diff --git a/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/small.ico b/7, 8 лаб/8/2.3.3 лаб 8/2.3.3 лаб 8/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn&SNSS4zywZ(O!oQ5+P}Zq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L;5zvYO@&NSejCI&|T*e1;&eJEeu`x#C z8{5<;gHevUqYWZ@%bcbT(*wux*4qys$-mVVYTwvHddRo9NM047zh39~wJx z9M#W5mix!+@has( zPZ59^AP<0PmqeeQK!-LmX^|IYi1hI^w_Nk*EABj|J^82mp-$bQ5t{yRkgM}HQZ>fc z3*sdZ(};f6Af|-$E0f`+$@t1-s8*?Dh=nSZ5^3Gx?P6kq7>c37L<+@FA(XkR=vNau z1En7Tc~6Ac5i%SuR;)7P_Rmgxa8RG(_1BtfjM--f`=9IcLrc-IVu9EHCBN^1_rLc0 zHMpJwVULHV@)_IzP1U2Re7ydA{NPyNnvh=mXDmQrl zgvC#v#cJ#<57EsKj50Z#^J8#ivG&ywlWS6_Jpec?yx zxj<(;>ygOTy{SG&Uy}1OnAWGOzVZh80(I0nYXN!m`3vV%3^}*Q)`NLg6Mew0=bA?y z*gnBizg*Y9cYJY_@nqfC^oix4Qmc+gMvaf#%Wl+G8F*R8j$Df>NMHP`dl6Do;zmXf zBMwMBvTwC zx39j>7!rS6{Q6h+KReEwlW$7=HK#o`Z)qBF5hqHnq=@mnn;+b+r$5xQ~!YXt>yn zzw>PDchx$4fo*6#2|*s8mGem3Ty4g^FRpu;EMH(-9_R;6+stQlgMS;`*!Kpwm&M#S z)!2z`5*>8z;ozPO>dp2s?lm#@YcS1@5#+)BD<++$T?t@60IfbiU*HAhA^jo~Ren=!kukg)&8SBOE_~-UA>GK&yWsuhIb4Bal23BMSwUQPd=3>6gt zkl&Mem_kO+1$GfTIbpUK diff --git a/7, 8 лаб/8/4 лаб 8/4 лаб 8.sln b/7, 8 лаб/8/4 лаб 8/4 лаб 8.sln new file mode 100644 index 0000000..d7118c7 --- /dev/null +++ b/7, 8 лаб/8/4 лаб 8/4 лаб 8.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4 лаб 8", "4 лаб 8\4 лаб 8.vcxproj", "{61F93194-03CB-4A4C-B868-B1AF899E239E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {61F93194-03CB-4A4C-B868-B1AF899E239E}.Debug|x64.ActiveCfg = Debug|x64 + {61F93194-03CB-4A4C-B868-B1AF899E239E}.Debug|x64.Build.0 = Debug|x64 + {61F93194-03CB-4A4C-B868-B1AF899E239E}.Debug|x86.ActiveCfg = Debug|Win32 + {61F93194-03CB-4A4C-B868-B1AF899E239E}.Debug|x86.Build.0 = Debug|Win32 + {61F93194-03CB-4A4C-B868-B1AF899E239E}.Release|x64.ActiveCfg = Release|x64 + {61F93194-03CB-4A4C-B868-B1AF899E239E}.Release|x64.Build.0 = Release|x64 + {61F93194-03CB-4A4C-B868-B1AF899E239E}.Release|x86.ActiveCfg = Release|Win32 + {61F93194-03CB-4A4C-B868-B1AF899E239E}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {9F3821D8-3BE7-4093-8ED0-7CE025C424A1} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.cpp b/7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.cpp new file mode 100644 index 0000000..1377ac2 --- /dev/null +++ b/7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.cpp @@ -0,0 +1,200 @@ +// 4 лаб 8.cpp : Определяет точку входа для приложения. +// + +#include "framework.h" +#include "4 лаб 8.h" + +#define MAX_LOADSTRING 100 + +// Глобальные переменные: +HINSTANCE hInst; // текущий экземпляр +WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка +WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна + +// Отправить объявления функций, включенных в этот модуль кода: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + // TODO: Разместите код здесь. + + // Инициализация глобальных строк + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MY48, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Выполнить инициализацию приложения: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY48)); + + MSG msg; + + // Цикл основного сообщения: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// ФУНКЦИЯ: MyRegisterClass() +// +// ЦЕЛЬ: Регистрирует класс окна. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MY48)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY48); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// ФУНКЦИЯ: InitInstance(HINSTANCE, int) +// +// ЦЕЛЬ: Сохраняет маркер экземпляра и создает главное окно +// +// КОММЕНТАРИИ: +// +// В этой функции маркер экземпляра сохраняется в глобальной переменной, а также +// создается и выводится главное окно программы. +// + + +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// ЦЕЛЬ: Обрабатывает сообщения в главном окне. +// +// WM_COMMAND - обработать меню приложения +// WM_PAINT - Отрисовка главного окна +// WM_DESTROY - отправить сообщение о выходе и вернуться +// +// +void Logo(HDC hdc, int x, int y) { + + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(0, 0, 0)); + SelectObject(hdc, hPen); + + Ellipse(hdc, 60 + x, 60 + y, 110 + x, 110 + y); + + MoveToEx(hdc, 75 + x, 85 + y, NULL); + LineTo(hdc, 10 + x, 60 + y); + LineTo(hdc, 89 + x, 83 + y); + + MoveToEx(hdc, 70 + x, 90 + y, NULL); + LineTo(hdc, 90 + x, 90 + y); + LineTo(hdc, 160 + x, 60 + y); + LineTo(hdc, 70 + x, 90 + y); + +} +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + int wmId = LOWORD(wParam); + // Разобрать выбор в меню: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + // TODO: Добавьте сюда любой код прорисовки, использующий HDC... + Logo(hdc, 0, 0); + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Обработчик сообщений для окна "О программе". +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} diff --git a/7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.h b/7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.h new file mode 100644 index 0000000..b798bf5 --- /dev/null +++ b/7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.h @@ -0,0 +1,3 @@ +#pragma once + +#include "resource.h" diff --git a/7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.ico b/7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eT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->*tF?OjOGwKhO)h*fw;VH`_(90l`&(38GvUN>#Jw4* zz6Q|95L#{l3Dhe0#5njoZ%=XB;Hj8Wg^-mVU=bIgY$z|rMS3;f*xDLTM{)?gFb2@m z*|~=}_(|g-SKuv;QdMOgWli_Cu9$bU9qu}ijOX~F%9ZsT<%<`_5qE`kD~Z?^wAF>J z5AYtS)mkr0KD;STzUX$#8wvN4k%d&bM)6ujmcrX>I+8dKMVzL66gf0p`CS(J+6wqDjt=OrTjeFx%x@cPV~dC@Ifm$ds~!m z$?EeQnWA&#XR;^kK<#!m3m71`l%Hh^K%<=OKI*>3jV_`Yw{bXqB(G{PNkaag?@Cw&DJZQ*9OJ+6Z}c=0lj{V6J68 zL&Osjy*4vqJS!dOsgxA+Y}rl|*~|z}buLqqwkD3{$(Co$AxfUY#?v#e`CgW@XDUY{ z>l4!2Gigowa+TyR{d}okD!+8xZ{zY?{v%*C%cW1_hTNr5Xb5J%56^n7|1!=01C)(A Gr1CHH`sfM( literal 0 HcmV?d00001 diff --git a/7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.vcxproj b/7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.vcxproj new file mode 100644 index 0000000..2b047e9 --- /dev/null +++ b/7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.vcxproj @@ -0,0 +1,148 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {61f93194-03cb-4a4c-b868-b1af899e239e} + My4лаб8 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.vcxproj.filters b/7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.vcxproj.filters new file mode 100644 index 0000000..ac98565 --- /dev/null +++ b/7, 8 лаб/8/4 лаб 8/4 лаб 8/4 лаб 8.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + + + Исходные файлы + + + + + Файлы ресурсов + + + + + Файлы ресурсов + + + Файлы ресурсов + + + \ No newline at end of file diff --git a/7, 8 лаб/8/4 лаб 8/4 лаб 8/Resource.h b/7, 8 лаб/8/4 лаб 8/4 лаб 8/Resource.h new file mode 100644 index 0000000..00d9a74 --- /dev/null +++ b/7, 8 лаб/8/4 лаб 8/4 лаб 8/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Включаемый файл, созданный в Microsoft Visual C++. +// Используется 4 лаб 8.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MY48_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MY48 107 +#define IDI_SMALL 108 +#define IDC_MY48 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Следующие стандартные значения для новых объектов +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/7, 8 лаб/8/4 лаб 8/4 лаб 8/framework.h b/7, 8 лаб/8/4 лаб 8/4 лаб 8/framework.h new file mode 100644 index 0000000..a8f6dc8 --- /dev/null +++ b/7, 8 лаб/8/4 лаб 8/4 лаб 8/framework.h @@ -0,0 +1,15 @@ +// header.h: включаемый файл для стандартных системных включаемых файлов +// или включаемые файлы для конкретного проекта +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows +// Файлы заголовков Windows +#include +// Файлы заголовков среды выполнения C +#include +#include +#include +#include diff --git a/7, 8 лаб/8/4 лаб 8/4 лаб 8/small.ico b/7, 8 лаб/8/4 лаб 8/4 лаб 8/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN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б 8.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "5 лаб 8", "5 лаб 8\5 лаб 8.vcxproj", "{64D08E30-0792-47BD-AA31-D4A1E3DFB84A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {64D08E30-0792-47BD-AA31-D4A1E3DFB84A}.Debug|x64.ActiveCfg = Debug|x64 + {64D08E30-0792-47BD-AA31-D4A1E3DFB84A}.Debug|x64.Build.0 = Debug|x64 + {64D08E30-0792-47BD-AA31-D4A1E3DFB84A}.Debug|x86.ActiveCfg = Debug|Win32 + {64D08E30-0792-47BD-AA31-D4A1E3DFB84A}.Debug|x86.Build.0 = Debug|Win32 + {64D08E30-0792-47BD-AA31-D4A1E3DFB84A}.Release|x64.ActiveCfg = Release|x64 + {64D08E30-0792-47BD-AA31-D4A1E3DFB84A}.Release|x64.Build.0 = Release|x64 + {64D08E30-0792-47BD-AA31-D4A1E3DFB84A}.Release|x86.ActiveCfg = Release|Win32 + {64D08E30-0792-47BD-AA31-D4A1E3DFB84A}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F4DA27F2-2936-4B63-8046-82E976F4D3A1} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.cpp b/7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.cpp new file mode 100644 index 0000000..93db7e0 --- /dev/null +++ b/7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.cpp @@ -0,0 +1,206 @@ +// 5 лаб 8.cpp : Определяет точку входа для приложения. +// + +#include "framework.h" +#include "5 лаб 8.h" + +#define MAX_LOADSTRING 100 + +// Глобальные переменные: +HINSTANCE hInst; // текущий экземпляр +WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка +WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна + +// Отправить объявления функций, включенных в этот модуль кода: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + // TODO: Разместите код здесь. + + // Инициализация глобальных строк + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MY58, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Выполнить инициализацию приложения: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY58)); + + MSG msg; + + // Цикл основного сообщения: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// ФУНКЦИЯ: MyRegisterClass() +// +// ЦЕЛЬ: Регистрирует класс окна. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MY58)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY58); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// ФУНКЦИЯ: InitInstance(HINSTANCE, int) +// +// ЦЕЛЬ: Сохраняет маркер экземпляра и создает главное окно +// +// КОММЕНТАРИИ: +// +// В этой функции маркер экземпляра сохраняется в глобальной переменной, а также +// создается и выводится главное окно программы. +// +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// ЦЕЛЬ: Обрабатывает сообщения в главном окне. +// +// WM_COMMAND - обработать меню приложения +// WM_PAINT - Отрисовка главного окна +// WM_DESTROY - отправить сообщение о выходе и вернуться +// +// +void Logo(HDC hdc, int x, int y) { + + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(0, 0, 0)); + SelectObject(hdc, hPen); + + Ellipse(hdc, 60 + x, 60 + y, 110 + x, 110 + y); + + MoveToEx(hdc, 75 + x, 85 + y, NULL); + LineTo(hdc, 10 + x, 60 + y); + LineTo(hdc, 89 + x, 83 + y); + + MoveToEx(hdc, 70 + x, 90 + y, NULL); + LineTo(hdc, 90 + x, 90 + y); + LineTo(hdc, 160 + x, 60 + y); + LineTo(hdc, 70 + x, 90 + y); + +} +void Logo1(HDC hdc) { + Logo(hdc, 10, 40); + Logo(hdc, 180, 40); + Logo(hdc, 350, 40); + Logo(hdc, 520, 40); + +} +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + int wmId = LOWORD(wParam); + // Разобрать выбор в меню: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + // TODO: Добавьте сюда любой код прорисовки, использующий HDC... + Logo1(hdc); + + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Обработчик сообщений для окна "О программе". +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} diff --git a/7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.h b/7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.h new file mode 100644 index 0000000..b798bf5 --- /dev/null +++ b/7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.h @@ -0,0 +1,3 @@ +#pragma once + +#include "resource.h" diff --git a/7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.ico b/7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn&SNSS4zywZ(O!oQ5+P}ZqDo*iQywp2?H;6m*1FM+v(ik zKuPue2llH<lpzzQC0ZQ&fW!@2| zCA+sBFDXoZ&s`OJt!UeG*-;nSw@IqwS!bgXV{4brPy0l^ru(7V((LEr;MieH9$eol ztF#|gWOnaxM#TNAhX?ycZV#28>t6U2vUhev*6X=!y^Cyctm@*mSw&||2b89k2T12S zs5WPQGwMKAfV2p*(!)o6B2$E!rv#ZHO0PlduB^0pWIyVm*{I^DzUzC8eCW8? z=BFT&pQ;pzy=-=tzc!;ZH7GzD1dQ^-Q+y&NpT{jR`AMZnyl1oX>1)aw`%wjE%C9pb z{^#7`jy{pUx+;`bicdg?AKvS8+Eg+s!X*4ofn?BwTUi5A9Wt#IhcW`Cp;u~zX&I+$ z6~0HjCOi(CTN{<%GdDz;c&lIU&Wcl8MG?v_mEWu%n^Nd_qUfnFly0f|W~(eABVuOa zHt$DAeIrLYsMenG_dlE&X7MD9C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Rjd5qCFOO9_gE`!CuNoN*^kJz3*evHBpx)8w!Y|vi zA+$2Yh#^`6S(aa*hZoSei`Ot)Gj9*HrK$vD)*a|}x!19!*Mvs^y90(rS$uYFyE zh)H(4NG}dGF;;6}R(GmDdXp^90_dSwyWeuf|2G1DfaWV2Cm2OSJayO$BPk2;$rkXpVrUF-|;;EMv^)xyJSM z(biPzZN(dXRJy;7wNKH;(PwyE->*tF?OjOGwKhO)h*fw;VH`_(90l`&(38GvUN>#Jw4* zz6Q|95L#{l3Dhe0#5njoZ%=XB;Hj8Wg^-mVU=bIgY$z|rMS3;f*xDLTM{)?gFb2@m z*|~=}_(|g-SKuv;QdMOgWli_Cu9$bU9qu}ijOX~F%9ZsT<%<`_5qE`kD~Z?^wAF>J z5AYtS)mkr0KD;STzUX$#8wvN4k%d&bM)6ujmcrX>I+8dKMVzL66gf0p#@ibv&RDL;>Pu6~lV6aDZje9#Kc-WKIs zvidwnrsy2`nd}KWP`jPY0tUz}LhOj?t^TqU_nKVRyX$}b)F+qnFe{|Fe(a_Q5!A$MsM8iLvH!?RxNzfAN00A-^N Gsr(CX@8}c& literal 0 HcmV?d00001 diff --git a/7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.vcxproj b/7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.vcxproj new file mode 100644 index 0000000..3d9977e --- /dev/null +++ b/7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.vcxproj @@ -0,0 +1,148 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {64d08e30-0792-47bd-aa31-d4a1e3dfb84a} + My5лаб8 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.vcxproj.filters b/7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.vcxproj.filters new file mode 100644 index 0000000..cc0391c --- /dev/null +++ b/7, 8 лаб/8/5 лаб 8/5 лаб 8/5 лаб 8.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + + + Исходные файлы + + + + + Файлы ресурсов + + + + + Файлы ресурсов + + + Файлы ресурсов + + + \ No newline at end of file diff --git a/7, 8 лаб/8/5 лаб 8/5 лаб 8/Resource.h b/7, 8 лаб/8/5 лаб 8/5 лаб 8/Resource.h new file mode 100644 index 0000000..a1671d2 --- /dev/null +++ b/7, 8 лаб/8/5 лаб 8/5 лаб 8/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Включаемый файл, созданный в Microsoft Visual C++. +// Используется 5 лаб 8.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MY58_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MY58 107 +#define IDI_SMALL 108 +#define IDC_MY58 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Следующие стандартные значения для новых объектов +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/7, 8 лаб/8/5 лаб 8/5 лаб 8/framework.h b/7, 8 лаб/8/5 лаб 8/5 лаб 8/framework.h new file mode 100644 index 0000000..a8f6dc8 --- /dev/null +++ b/7, 8 лаб/8/5 лаб 8/5 лаб 8/framework.h @@ -0,0 +1,15 @@ +// header.h: включаемый файл для стандартных системных включаемых файлов +// или включаемые файлы для конкретного проекта +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows +// Файлы заголовков Windows +#include +// Файлы заголовков среды выполнения C +#include +#include +#include +#include diff --git a/7, 8 лаб/8/5 лаб 8/5 лаб 8/small.ico b/7, 8 лаб/8/5 лаб 8/5 лаб 8/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)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аб/8/5.2 лаб 8/5.2 лаб 8.sln new file mode 100644 index 0000000..d12cd85 --- /dev/null +++ b/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "5.2 лаб 8", "5.2 лаб 8\5.2 лаб 8.vcxproj", "{8050BD84-9889-418E-9376-E66F35B38263}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8050BD84-9889-418E-9376-E66F35B38263}.Debug|x64.ActiveCfg = Debug|x64 + {8050BD84-9889-418E-9376-E66F35B38263}.Debug|x64.Build.0 = Debug|x64 + {8050BD84-9889-418E-9376-E66F35B38263}.Debug|x86.ActiveCfg = Debug|Win32 + {8050BD84-9889-418E-9376-E66F35B38263}.Debug|x86.Build.0 = Debug|Win32 + {8050BD84-9889-418E-9376-E66F35B38263}.Release|x64.ActiveCfg = Release|x64 + {8050BD84-9889-418E-9376-E66F35B38263}.Release|x64.Build.0 = Release|x64 + {8050BD84-9889-418E-9376-E66F35B38263}.Release|x86.ActiveCfg = Release|Win32 + {8050BD84-9889-418E-9376-E66F35B38263}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A7B1D420-94F9-4E4A-9326-301766A71D80} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.cpp b/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.cpp new file mode 100644 index 0000000..0dc6eea --- /dev/null +++ b/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.cpp @@ -0,0 +1,207 @@ +// 5.2 лаб 8.cpp : Определяет точку входа для приложения. +// + +#include "framework.h" +#include "5.2 лаб 8.h" + +#define MAX_LOADSTRING 100 + +// Глобальные переменные: +HINSTANCE hInst; // текущий экземпляр +WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка +WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна + +// Отправить объявления функций, включенных в этот модуль кода: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + // TODO: Разместите код здесь. + + // Инициализация глобальных строк + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MY528, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Выполнить инициализацию приложения: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY528)); + + MSG msg; + + // Цикл основного сообщения: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// ФУНКЦИЯ: MyRegisterClass() +// +// ЦЕЛЬ: Регистрирует класс окна. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MY528)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY528); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// ФУНКЦИЯ: InitInstance(HINSTANCE, int) +// +// ЦЕЛЬ: Сохраняет маркер экземпляра и создает главное окно +// +// КОММЕНТАРИИ: +// +// В этой функции маркер экземпляра сохраняется в глобальной переменной, а также +// создается и выводится главное окно программы. +// +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// ЦЕЛЬ: Обрабатывает сообщения в главном окне. +// +// WM_COMMAND - обработать меню приложения +// WM_PAINT - Отрисовка главного окна +// WM_DESTROY - отправить сообщение о выходе и вернуться +// +// +void Logo(HDC hdc, int x, int y) { + + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(0, 0, 0)); + SelectObject(hdc, hPen); + + Ellipse(hdc, 60 + x, 60 + y, 110 + x, 110 + y); + + MoveToEx(hdc, 75 + x, 85 + y, NULL); + LineTo(hdc, 10 + x, 60 + y); + LineTo(hdc, 89 + x, 83 + y); + + MoveToEx(hdc, 70 + x, 90 + y, NULL); + LineTo(hdc, 90 + x, 90 + y); + LineTo(hdc, 160 + x, 60 + y); + LineTo(hdc, 70 + x, 90 + y); + +} +void Logo2(HDC hdc) { + Logo(hdc, 10, 60); + Logo(hdc, 10, 130); + Logo(hdc, 10, 200); + Logo(hdc, 10, 270); + Logo(hdc, 10, 340); + Logo(hdc, 10, 410); +} +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + int wmId = LOWORD(wParam); + // Разобрать выбор в меню: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + // TODO: Добавьте сюда любой код прорисовки, использующий HDC... + + Logo2(hdc); + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Обработчик сообщений для окна "О программе". +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} diff --git a/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.h b/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.h new file mode 100644 index 0000000..b798bf5 --- /dev/null +++ b/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.h @@ -0,0 +1,3 @@ +#pragma once + +#include "resource.h" diff --git a/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.ico b/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn&SNSS4zywZ(O!oQ5+P}ZqDo*iQywp2?H;6m*1FM+v(ik zKuPue2llH<lpzzQC0ZQ&fW!@2| zCA+sBFDXoZ&s`OJt!UeG*-;nSw@IqwS!bgXV{4brPy0l^ru(7V((LEr;MieH9$eol ztF#|gWOnaxM#TNAhX?ycZV#28>t6U2vUhev*6X=!y^Cyctm@*mSw&||2b89k2T12S zs5WPQGwMKAfV2p*(!)o6B2$E!rv#ZHO0PlduB^0pWIyVm*{I^DzUzC8eCW8? z=BFT&pQ;pzy=-=tzc!;ZH7GzD1dQ^-Q+y&NpT{jR`AMZnyl1oX>1)aw`%wjE%C9pb z{^#7`jy{pUx+;`bicdg?AKvS8+Eg+s!X*4ofn?BwTUi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UglBT^5~2-Z9S@8Zccwvllr+);Xd+*~UvtI(HwM0g?n@dm7*8sAYOol_RK}Pr zG&ECs;)(tg9)XdAS~%9T1zSq08}}~D_UwBLQG!%?UpP|)aqbv2$3W8rXCFqG3Fh;J z<9hmNYby1&;*DM^+26+6r)cBoGd!;ESEZWtFQn*N8=yACD!i>Qp2a9*E_N**26P5uHuYQq$3U4c{)3aJOlv zq_KwcUiH6s1z&5>Nl8~WuS{!lcNuF*ms#Lz}jZ!9HMG?Px_R`;jq6jqXu7;lq<$pTuWvN zjA!aLE1$ENlX#q74M)W*DNh>N<^d^toXts&D`T(nM`dFvJGXYOev-6f{qT!7s)w)O z>}^>NCauqNWRK2~vq_(}1GU@v%wT|gQ+DPl0F694aXu=4jLV2I7nz+?T$VS=r@ENi z43Mv4YdUkajQiyopU3c(r|->2={ryQyj8y3@{4D`#!=Ef*@n9?&bMWpa6{zQnImD| zgZY=mtPxL1^xDjl@w`;m^C>B2*|MD`=CdU{-C6!5X;B={b1qMwLzFy?O=c%x^S>;! z&Q^|2+BYP%Xj0oQ6ssh6$>*W|srb@yzm3bU`EP;IES5fv8*-OKp`n=lK0NHT{sXo6 K?@&7WkjlS^N9w=; literal 0 HcmV?d00001 diff --git a/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.vcxproj b/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.vcxproj new file mode 100644 index 0000000..5a7d6f9 --- /dev/null +++ b/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.vcxproj @@ -0,0 +1,148 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {8050bd84-9889-418e-9376-e66f35b38263} + My52лаб8 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.vcxproj.filters b/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.vcxproj.filters new file mode 100644 index 0000000..205c087 --- /dev/null +++ b/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/5.2 лаб 8.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + + + Исходные файлы + + + + + Файлы ресурсов + + + + + Файлы ресурсов + + + Файлы ресурсов + + + \ No newline at end of file diff --git a/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/Resource.h b/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/Resource.h new file mode 100644 index 0000000..703a1fe --- /dev/null +++ b/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Включаемый файл, созданный в Microsoft Visual C++. +// Используется 5.2 лаб 8.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MY528_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MY528 107 +#define IDI_SMALL 108 +#define IDC_MY528 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Следующие стандартные значения для новых объектов +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/framework.h b/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/framework.h new file mode 100644 index 0000000..a8f6dc8 --- /dev/null +++ b/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/framework.h @@ -0,0 +1,15 @@ +// header.h: включаемый файл для стандартных системных включаемых файлов +// или включаемые файлы для конкретного проекта +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows +// Файлы заголовков Windows +#include +// Файлы заголовков среды выполнения C +#include +#include +#include +#include diff --git a/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/small.ico b/7, 8 лаб/8/5.2 лаб 8/5.2 лаб 8/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg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~-UA>GK&yWsuhIb4Bal23BMSwUQPd=3>6gt zkl&Mem_kO+1$GfTIbpUK diff --git a/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8.sln b/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8.sln new file mode 100644 index 0000000..eec8a83 --- /dev/null +++ b/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "5.3 лаб 8", "5.3 лаб 8\5.3 лаб 8.vcxproj", "{E0A12C10-FE08-4C37-B1E8-98BCC2B78E60}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E0A12C10-FE08-4C37-B1E8-98BCC2B78E60}.Debug|x64.ActiveCfg = Debug|x64 + {E0A12C10-FE08-4C37-B1E8-98BCC2B78E60}.Debug|x64.Build.0 = Debug|x64 + {E0A12C10-FE08-4C37-B1E8-98BCC2B78E60}.Debug|x86.ActiveCfg = Debug|Win32 + {E0A12C10-FE08-4C37-B1E8-98BCC2B78E60}.Debug|x86.Build.0 = Debug|Win32 + {E0A12C10-FE08-4C37-B1E8-98BCC2B78E60}.Release|x64.ActiveCfg = Release|x64 + {E0A12C10-FE08-4C37-B1E8-98BCC2B78E60}.Release|x64.Build.0 = Release|x64 + {E0A12C10-FE08-4C37-B1E8-98BCC2B78E60}.Release|x86.ActiveCfg = Release|Win32 + {E0A12C10-FE08-4C37-B1E8-98BCC2B78E60}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {FD86D9F3-AF88-4DC0-897D-6E3446F9A565} + EndGlobalSection +EndGlobal diff --git a/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.cpp b/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.cpp new file mode 100644 index 0000000..b8be6c2 --- /dev/null +++ b/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.cpp @@ -0,0 +1,204 @@ +// 5.3 лаб 8.cpp : Определяет точку входа для приложения. +// + +#include "framework.h" +#include "5.3 лаб 8.h" + +#define MAX_LOADSTRING 100 + +// Глобальные переменные: +HINSTANCE hInst; // текущий экземпляр +WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка +WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна + +// Отправить объявления функций, включенных в этот модуль кода: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + // TODO: Разместите код здесь. + + // Инициализация глобальных строк + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MY538, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Выполнить инициализацию приложения: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY538)); + + MSG msg; + + // Цикл основного сообщения: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// ФУНКЦИЯ: MyRegisterClass() +// +// ЦЕЛЬ: Регистрирует класс окна. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MY538)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY538); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// ФУНКЦИЯ: InitInstance(HINSTANCE, int) +// +// ЦЕЛЬ: Сохраняет маркер экземпляра и создает главное окно +// +// КОММЕНТАРИИ: +// +// В этой функции маркер экземпляра сохраняется в глобальной переменной, а также +// создается и выводится главное окно программы. +// +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// ЦЕЛЬ: Обрабатывает сообщения в главном окне. +// +// WM_COMMAND - обработать меню приложения +// WM_PAINT - Отрисовка главного окна +// WM_DESTROY - отправить сообщение о выходе и вернуться +// +// +void Logo(HDC hdc, int x, int y) { + + HPEN hPen = CreatePen(PS_SOLID, 3, RGB(0, 0, 0)); + SelectObject(hdc, hPen); + + Ellipse(hdc, 60 + x, 60 + y, 110 + x, 110 + y); + + MoveToEx(hdc, 75 + x, 85 + y, NULL); + LineTo(hdc, 10 + x, 60 + y); + LineTo(hdc, 89 + x, 83 + y); + + MoveToEx(hdc, 70 + x, 90 + y, NULL); + LineTo(hdc, 90 + x, 90 + y); + LineTo(hdc, 160 + x, 60 + y); + LineTo(hdc, 70 + x, 90 + y); + +} +void Logo3(HDC hdc) { + Logo(hdc, 10, 60); + Logo(hdc, 180, 130); + Logo(hdc, 350, 200); + Logo(hdc, 520, 270); +} +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + int wmId = LOWORD(wParam); + // Разобрать выбор в меню: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + // TODO: Добавьте сюда любой код прорисовки, использующий HDC... + Logo3(hdc); + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Обработчик сообщений для окна "О программе". +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} diff --git a/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.h b/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.h new file mode 100644 index 0000000..b798bf5 --- /dev/null +++ b/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.h @@ -0,0 +1,3 @@ +#pragma once + +#include "resource.h" diff --git a/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.ico b/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn&SNSS4zywZ(O!oQ5+P}ZqDo*iQywp2?H;6m*1FM+v(ik zKuPue2llH<lpzzQC0ZQ&fW!@2| zCA+sBFDXoZ&s`OJt!UeG*-;nSw@IqwS!bgXV{4brPy0l^ru(7V((LEr;MieH9$eol ztF#|gWOnaxM#TNAhX?ycZV#28>t6U2vUhev*6X=!y^Cyctm@*mSw&||2b89k2T12S zs5WPQGwMKAfV2p*(!)o6B2$E!rv#ZHO0Pldu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>QJm zMmVmgkG7^#Z!6wtrPBRvtbK|$jy}WV`hHcaY5PKouC)PbL#)Ev3jJBq<0zONB&V}u zg94l4=lDQpzmh#gdL{wvBe@*mR&|Mc*A?nbyx#+{TrppViany!32JKAd#~Wzc@myB z^^`PL5bxFgdx!X1flMm8vRP$nle^1UOSa7O_te-YKo4)KF7Bwp##U4d^ZBS@-Gm#* z6;EiSk{duaL&&=YOi;c&8RO#f{5?bL!AO}q3$b6?f<;_}vZ1^f7wOe_i)*WI9myf2 zLw`VvqwNsb!Oj@l4|QKz8&W>sVI1*PShte6 zZ9!UHX#D{1f$FdIvgE_t^C$~B7DD$*C;XwyE$*(%~RZLP?m;VPe! z_0r$9A$dlyykC(sQrpa6(?%bozXQC?kFNr2>$!7?s^LB9b2ko${ka)+ATGVH1Yb!l zoh2}yDcih!&U{YdadI^rm9OM}vdA_I$h{}oobA+K9=%xYv*bwNjs4bzrshY z;Ph=#4kjzlb7YUsk+aE0+kxusY-TV(z9~QR6o5t%og^PsJjP|jn2XHMDK5$z6;qwh zZ3f6!u{E2yTEzY0jL&2EDv~#E&<{sc(e8^@`Et!KpZ*$0Y5imy?!t&~tB7zTY9cX+?ig~(h(Zp=FgwdVlPtqF2@r-jBc@9xB8XHd|V6(q0 z^I|JUCu + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {e0a12c10-fe08-4c37-b1e8-98bcc2b78e60} + My53лаб8 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.vcxproj.filters b/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.vcxproj.filters new file mode 100644 index 0000000..83cee1f --- /dev/null +++ b/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/5.3 лаб 8.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + Файлы заголовков + + + + + Исходные файлы + + + + + Файлы ресурсов + + + + + Файлы ресурсов + + + Файлы ресурсов + + + \ No newline at end of file diff --git a/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/Resource.h b/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/Resource.h new file mode 100644 index 0000000..2349b20 --- /dev/null +++ b/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Включаемый файл, созданный в Microsoft Visual C++. +// Используется 5.3 лаб 8.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MY538_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MY538 107 +#define IDI_SMALL 108 +#define IDC_MY538 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Следующие стандартные значения для новых объектов +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/framework.h b/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/framework.h new file mode 100644 index 0000000..a8f6dc8 --- /dev/null +++ b/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/framework.h @@ -0,0 +1,15 @@ +// header.h: включаемый файл для стандартных системных включаемых файлов +// или включаемые файлы для конкретного проекта +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows +// Файлы заголовков Windows +#include +// Файлы заголовков среды выполнения C +#include +#include +#include +#include diff --git a/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/small.ico b/7, 8 лаб/8/5.3 лаб 8/5.3 лаб 8/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I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c_`R zugg}!Ydq@h$29SaF|eVr&`_U49jzz4##?2qe$u6%vBnhYh`JKJ^X30dIm@%cR4NV!^h_-sLCj%(MG2jOv0nn)@vmECyc-1={ z&s^gcd6+VoX+!2h97EW4L-LriA&oYnZCvL;5zvYO@&NSejCI&|T*e1;&eJEeu`x#C z8{5<;gHevUqYWZ@%bcbT(*wux*4qys$-mVVYTwvHddRo9NM047zh39~wJx z9M#W5mix!+@has( zPZ59^AP<0PmqeeQK!-LmX^|IYi1hI^w_Nk*EABj|J^82mp-$bQ5t{yRkgM}HQZ>fc z3*sdZ(};f6Af|-$E0f`+$@t1-s8*?Dh=nSZ5^3Gx?P6kq7>c37L<+@FA(XkR=vNau z1En7Tc~6Ac5i%SuR;)7P_Rmgxa8RG(_1BtfjM--f`=9IcLrc-IVu9EHCBN^1_rLc0 zHMpJwVULHV@)_IzP1U2Re7ydA{NPyNnvh=mXDmQrl zgvC#v#cJ#<57EsKj50Z#^J8#ivG&ywlWS6_Jpec?yx zxj<(;>ygOTy{SG&Uy}1OnAWGOzVZh80(I0nYXN!m`3vV%3^}*Q)`NLg6Mew0=bA?y z*gnBizg*Y9cYJY_@nqfC^oix4Qmc+gMvaf#%Wl+G8F*R8j$Df>NMHP`dl6Do;zmXf zBMwMBvTwC zx39j>7!rS6{Q6h+KReEwlW$7=HK#o`Z)qBF5hqHnq=@mnn;+b+r$5xQ~!YXt>yn zzw>PDchx$4fo*6#2|*s8mGem3Ty4g^FRpu;EMH(-9_R;6+stQlgMS;`*!Kpwm&M#S z)!2z`5*>8z;ozPO>dp2s?lm#@YcS1@5#+)BD<++$T?t@60IfbiU*HAhA^jo~Ren=!kukg)&8SBOE_~-UA>GK&yWsuhIb4Bal23BMSwUQPd=3>6gt zkl&Mem_kO+1$GfTIbpUK diff --git a/7, 8 лаб/№ 1 лаб 8.png b/7, 8 лаб/№ 1 лаб 8.png new file mode 100644 index 0000000000000000000000000000000000000000..bf49008f7056dcad32852f3afcb4db3a2beb251a GIT binary patch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5W${?kk%H*K>P5WRhJ?Hb> zfo}d4vs;-#F+-y30^j~mV<-<;jgbMMix6_DcWB#%H(VQ8ImTe&tSQktepEy6t_4R_ zuP&`ny3-F@1m6at9kOc`xuc3~IV5XN8?vmB2?PYH^x<->J;ky!a1fm8xQM%=3vJgC?>lum9eDj|Na=W3s z!g?G}hq8v-V8s*e!pp`~3V0dk6|*uTe9`96@z}=AHTk{2yCq{QG$~I5FY9e_j3hg8 z+*TAL8VY0zJ~ZIY^bUv=W2l=}~844Ta7Gglnhi z#g)tQz{>7|eOO+B|F9h=GjwhP`XmO3t{TEgNh9UA5@nACmOqx4ei62}{_q&PR)^{a z5=kf`$1CVVb=$A+R4gnAITOGfsv67YRJ{Tj1t4@)1WUY{jn%WU+77G3VRas^-VUpG t90`{{t7f{?h;e literal 0 HcmV?d00001 diff --git a/7, 8 лаб/№ 2 лаб 8.png b/7, 8 лаб/№ 2 лаб 8.png new file mode 100644 index 0000000000000000000000000000000000000000..bde8fe2f7c5ccd2b0e23e83c8a71b455b54728a8 GIT binary patch literal 5531 zcmeH~X;9Ng6u>tzVmJZ;1uG;RI@FjMXOc0iK0*?91%2PI09ILprm6f zh{PI?dK-fjLOe<^8d@O1TIBGEXoL(XphXfug57_hjlv`|4z#fn3Eu?r}>|^Gj|AF z+`i)8zG#%|v)92h?7uQgO*N+Mn-YeODw@eYZj#uS0kwkf25MhLAzw~nY+=iEM`2-S z8wAj>%bU)GEqJCAeX3|wu>^Fnn+s!a29a0UwN33Fj)DPJZ=LdC)cdim=ILr|@Icu) zCn=IKanTdxD@gPS=(!53#YUa9M=-ErtymSzUJmjYu3f0zEPV^u`qR+6=f)`8O5z2^j>b` z!u6F~RQ;FY84^9jNXKFvcdA(sVvfgT#uqQa>~&Bo37$u;?fr%A%Y|N2g#Y2}+_5;M z8n(9gvAkIqpJ)bDeMxSQE#+vEvO$hUfUB?Q!g15V(BLeWfxc!+x8vbdsFsPF%GKo7 zDV+`{DJ{U-sVWSqMa^BtA5K6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)+zLhyHgLCm;sB`n3$lc$6P>` zMYIoY*%O}V@Cv>$>uAYi4D`c9x+0?+ptM(CM8Su;Y@ks)JEQH>`$ zdMkcF_f8go)CeZ=w#guM`l1%A3$g((YGj_NmD8551$TYD>N14CTK5wE^7D6RlEhK|R& zqI^3gxd+-qs-Te%HD+vqgCKgWaeXx*W{rZkoGB+8w?$j%pOtC{HjakppyR$R>tC2{ z1*6F}{8jIg>B_Op9B5zvT>7=L!6ukp1CL<@&H$YQWSVL;5}!-e$G-51`>i{35>H@PGLkzRE1P$Siwa=Q^4fUH0V+$b}o`Iw2S7d|H zdzw60p#9S9wmY2JxS!v01wU?;SU& z|BjF=oIeCKL38{8&Ss-J#4}~TV9am4=i8shSb56mKBd!K-OO)T`NqJ*!Rzf53{WI! zwt{%|zhJI@0B`f()TV!&bpGQF?}T&gkHhbO9Q6O=|3m!oe?R{J_d literal 0 HcmV?d00001 diff --git a/9, 10 лаб/1, 2 лаб 10/1 лаб 10.sln b/9, 10 лаб/1, 2 лаб 10/1 лаб 10.sln new file mode 100644 index 0000000..c9629b4 --- /dev/null +++ b/9, 10 лаб/1, 2 лаб 10/1 лаб 10.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "1 лаб 10", "1 лаб 10\1 лаб 10.vcxproj", "{180731D8-DD1D-4345-B1DB-ABE639EEDEB0}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {180731D8-DD1D-4345-B1DB-ABE639EEDEB0}.Debug|x64.ActiveCfg = Debug|x64 + {180731D8-DD1D-4345-B1DB-ABE639EEDEB0}.Debug|x64.Build.0 = Debug|x64 + {180731D8-DD1D-4345-B1DB-ABE639EEDEB0}.Debug|x86.ActiveCfg = Debug|Win32 + {180731D8-DD1D-4345-B1DB-ABE639EEDEB0}.Debug|x86.Build.0 = Debug|Win32 + {180731D8-DD1D-4345-B1DB-ABE639EEDEB0}.Release|x64.ActiveCfg = Release|x64 + {180731D8-DD1D-4345-B1DB-ABE639EEDEB0}.Release|x64.Build.0 = Release|x64 + {180731D8-DD1D-4345-B1DB-ABE639EEDEB0}.Release|x86.ActiveCfg = Release|Win32 + {180731D8-DD1D-4345-B1DB-ABE639EEDEB0}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {FCF90060-29BF-4992-A986-63ECD2564E38} + EndGlobalSection +EndGlobal diff --git a/9, 10 лаб/1, 2 лаб 10/1 лаб 10/1 лаб 10.vcxproj b/9, 10 лаб/1, 2 лаб 10/1 лаб 10/1 лаб 10.vcxproj new file mode 100644 index 0000000..889391a --- /dev/null +++ b/9, 10 лаб/1, 2 лаб 10/1 лаб 10/1 лаб 10.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {180731d8-dd1d-4345-b1db-abe639eedeb0} + My1лаб10 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/9, 10 лаб/1, 2 лаб 10/1 лаб 10/1 лаб 10.vcxproj.filters b/9, 10 лаб/1, 2 лаб 10/1 лаб 10/1 лаб 10.vcxproj.filters new file mode 100644 index 0000000..3f0db78 --- /dev/null +++ b/9, 10 лаб/1, 2 лаб 10/1 лаб 10/1 лаб 10.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Исходные файлы + + + \ No newline at end of file diff --git a/9, 10 лаб/1, 2 лаб 10/1 лаб 10/FileName.cpp b/9, 10 лаб/1, 2 лаб 10/1 лаб 10/FileName.cpp new file mode 100644 index 0000000..02afa27 --- /dev/null +++ b/9, 10 лаб/1, 2 лаб 10/1 лаб 10/FileName.cpp @@ -0,0 +1,66 @@ +#include +#include + +void Task1() { + printf("Task1() START\n"); + int n; + int m; + + printf("n = "); + scanf_s("%d", &n); + printf("m = "); + scanf_s("%d", &m); + + int i = 1; + do { + int j = 1; + do { + printf("%d ", i * 10 + j); + j += 1; + } while (j <= m); + printf("\n"); + i += 1; + } while (i <= n); + printf("Task1() FINISH()\n"); +} + +void Task2() { + printf("Task2() START\n"); + int i = 1; + do { + int j = 1; + do { + printf("%5d ", i * j); + j += 1; + } while (j <= 10); + printf("\n"); + i += 1; + } while (i <= 10); + printf("Task2() FINISH()\n"); +} + +void main() { + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + int n = 1; + + do { + printf("\n"); + printf("\n"); + printf(" \n"); + printf("1: 1 (i * 10 + j)\n"); + printf("2: 2 ( )\n"); + printf("\n"); + printf("0: \n"); + + scanf_s("%d", &n); + switch (n) { + case 1: + Task1(); + break; + case 2: + Task2(); + break; + } + } while (n != 0); +} \ No newline at end of file diff --git a/9, 10 лаб/1, 2, 3, 5 лаб 9/5 лаб 9.sln b/9, 10 лаб/1, 2, 3, 5 лаб 9/5 лаб 9.sln new file mode 100644 index 0000000..b523521 --- /dev/null +++ b/9, 10 лаб/1, 2, 3, 5 лаб 9/5 лаб 9.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "5 лаб 9", "5 лаб 9\5 лаб 9.vcxproj", "{12150A36-9D7F-4F8E-A3A9-745FF77BA796}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {12150A36-9D7F-4F8E-A3A9-745FF77BA796}.Debug|x64.ActiveCfg = Debug|x64 + {12150A36-9D7F-4F8E-A3A9-745FF77BA796}.Debug|x64.Build.0 = Debug|x64 + {12150A36-9D7F-4F8E-A3A9-745FF77BA796}.Debug|x86.ActiveCfg = Debug|Win32 + {12150A36-9D7F-4F8E-A3A9-745FF77BA796}.Debug|x86.Build.0 = Debug|Win32 + {12150A36-9D7F-4F8E-A3A9-745FF77BA796}.Release|x64.ActiveCfg = Release|x64 + {12150A36-9D7F-4F8E-A3A9-745FF77BA796}.Release|x64.Build.0 = Release|x64 + {12150A36-9D7F-4F8E-A3A9-745FF77BA796}.Release|x86.ActiveCfg = Release|Win32 + {12150A36-9D7F-4F8E-A3A9-745FF77BA796}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {115C7EB3-B988-40B7-ADEE-82FBA1102BC5} + EndGlobalSection +EndGlobal diff --git a/9, 10 лаб/1, 2, 3, 5 лаб 9/5 лаб 9/5 лаб 9.vcxproj b/9, 10 лаб/1, 2, 3, 5 лаб 9/5 лаб 9/5 лаб 9.vcxproj new file mode 100644 index 0000000..53a064b --- /dev/null +++ b/9, 10 лаб/1, 2, 3, 5 лаб 9/5 лаб 9/5 лаб 9.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {12150a36-9d7f-4f8e-a3a9-745ff77ba796} + My5лаб9 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/9, 10 лаб/1, 2, 3, 5 лаб 9/5 лаб 9/5 лаб 9.vcxproj.filters b/9, 10 лаб/1, 2, 3, 5 лаб 9/5 лаб 9/5 лаб 9.vcxproj.filters new file mode 100644 index 0000000..3f0db78 --- /dev/null +++ b/9, 10 лаб/1, 2, 3, 5 лаб 9/5 лаб 9/5 лаб 9.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Исходные файлы + + + \ No newline at end of file diff --git a/9, 10 лаб/1, 2, 3, 5 лаб 9/5 лаб 9/FileName.cpp b/9, 10 лаб/1, 2, 3, 5 лаб 9/5 лаб 9/FileName.cpp new file mode 100644 index 0000000..7815bed --- /dev/null +++ b/9, 10 лаб/1, 2, 3, 5 лаб 9/5 лаб 9/FileName.cpp @@ -0,0 +1,89 @@ +#include +#include + +void print1_10() { + int a = 1; + do { + printf("%d ", a); + a += 1; + } while (a <= 10); +} + +void print10_1() { + int a = 10; + do { + printf("%d ", a); + a -= 1; + } while (a >= 1); +} + +void print5() { + int a = 1; + int i = 1; + do { + printf("%d ", a); + a += 2; + i += 1; + } while (i <= 5); +} +void print100_10while() { + int a = 100; + while (a >= 10) { + printf("%d ", a); + a -= 10; + } +} +void print1000_100while() { + int a = 1000; + while (a >= 100) { + printf("%d ", a); + a -= 100; + } +} +void print1000_0while() { + int a = 1000; + while (a >= 0) { + printf("%d ", a); + a -= 6; + } +} +void main() { + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + int n; + + do { + printf("\n"); + printf("\n"); + printf(" :\n"); + printf("1: 1 10\n"); + printf("2: 10 1\n"); + printf("3: 5 1\n"); + printf("11: 100 90 80 ... 10( WHILE)\n"); + printf("12: 1000 900 800 ... 100( WHILE)\n"); + printf("20: 1000 994 988 ( WHILE)\n"); + printf("\n"); + printf("0: \n"); + scanf_s("%d", &n); + switch (n) { + case 1: + print1_10(); + break; + case 2: + print10_1(); + break; + case 3: + print5(); + break; + case 11: + print100_10while(); + break; + case 12: + print1000_100while(); + break; + case 20: + print1000_0while(); + break; + } + } while (n != 0); +}