добавление проекта

This commit is contained in:
Данил Лопатин 2024-10-24 09:45:26 +04:00
parent abb2328031
commit 9c41b9384d
14 changed files with 952 additions and 0 deletions

30
лаб7/з4/Resource.h Normal file
View File

@ -0,0 +1,30 @@
//{{NO_DEPENDENCIES}}
// Включаемый файл, созданный в Microsoft Visual C++.
// Используется з4.rc
#define IDS_APP_TITLE 103
#define IDR_MAINFRAME 128
#define IDD_MY4_DIALOG 102
#define IDD_ABOUTBOX 103
#define IDM_ABOUT 104
#define IDM_EXIT 105
#define IDI_MY4 107
#define IDI_SMALL 108
#define IDC_MY4 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

15
лаб7/з4/framework.h Normal file
View File

@ -0,0 +1,15 @@
// header.h: включаемый файл для стандартных системных включаемых файлов
// или включаемые файлы для конкретного проекта
//
#pragma once
#include "targetver.h"
#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows
// Файлы заголовков Windows
#include <windows.h>
// Файлы заголовков среды выполнения C
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>

BIN
лаб7/з4/small.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

6
лаб7/з4/targetver.h Normal file
View File

@ -0,0 +1,6 @@
#pragma once
// // При включении SDKDDKVer.h будет задана самая новая из доступных платформ Windows.
// Если вы планируете сборку приложения для предыдущей версии платформы Windows, включите WinSDKVer.h и
// задайте желаемую платформу в макросе _WIN32_WINNT, прежде чем включать SDKDDKVer.h.
#include <SDKDDKVer.h>

450
лаб7/з4/з4.cpp Normal file
View File

@ -0,0 +1,450 @@
// з4.cpp : Определяет точку входа для приложения.
//
#include "framework.h"
#include "з4.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_MY4, szWindowClass, MAX_LOADSTRING);
MyRegisterClass(hInstance);
// Выполнить инициализацию приложения:
if (!InitInstance (hInstance, nCmdShow))
{
return FALSE;
}
HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MY4));
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_MY4));
wcex.hCursor = LoadCursor(nullptr, IDC_ARROW);
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MY4);
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)
void drawhome(HDC hdc)
{
HPEN hPen;
hPen = CreatePen(PS_SOLID, 7, RGB(139, 0, 255));
SelectObject(hdc, hPen);
MoveToEx(hdc, 150, 450, NULL);
LineTo(hdc, 275, 350);
LineTo(hdc, 400, 450);
// Дом
hPen = CreatePen(PS_SOLID, 7, RGB(255, 102, 0));
SelectObject(hdc, hPen);
LineTo(hdc, 400, 625);
LineTo(hdc, 150, 625);
LineTo(hdc, 150, 450);
LineTo(hdc, 400, 450);
// Окно
hPen = CreatePen(PS_SOLID, 4, RGB(128, 166, 255));
SelectObject(hdc, hPen);
MoveToEx(hdc, 225, 500, NULL);
LineTo(hdc, 225, 575);
LineTo(hdc, 325, 575);
LineTo(hdc, 325, 500);
LineTo(hdc, 225, 500);
// Рама
hPen = CreatePen(PS_SOLID, 2, RGB(128, 166, 255));
SelectObject(hdc, hPen);
MoveToEx(hdc, 275, 500, NULL);
LineTo(hdc, 275, 575);
MoveToEx(hdc, 275, 525, NULL);
LineTo(hdc, 325, 525);
}
void elka(HDC hdc)
{
HPEN hPen;
hPen = CreatePen(PS_SOLID, 5, RGB(0, 100, 0));
SelectObject(hdc, hPen);
MoveToEx(hdc, 450, 625, NULL);
LineTo(hdc, 600, 625);
MoveToEx(hdc, 450, 625, NULL);
LineTo(hdc, 525, 550);
MoveToEx(hdc, 600, 625, NULL);
LineTo(hdc, 525, 550);
MoveToEx(hdc, 475, 550, NULL);
LineTo(hdc, 575, 550);
MoveToEx(hdc, 475, 550, NULL);
LineTo(hdc, 525, 500);
MoveToEx(hdc, 575, 550, NULL);
LineTo(hdc, 525, 500);
MoveToEx(hdc, 500, 500, NULL);
LineTo(hdc, 550, 500);
MoveToEx(hdc, 500, 500, NULL);
LineTo(hdc, 525, 475);
MoveToEx(hdc, 550, 500, NULL);
LineTo(hdc, 525, 475);
}
void mashina(HDC hdc)
{
HPEN hPen;
hPen = CreatePen(PS_SOLID, 3, RGB(0, 0, 0));
SelectObject(hdc, hPen);
HBRUSH hBrush;
hBrush = CreateHatchBrush(HS_FDIAGONAL, RGB(128, 128, 128));
SelectObject(hdc, hBrush);
hPen = CreatePen(PS_SOLID, 3, RGB(0, 0, 0));
SelectObject(hdc, hPen);
hBrush = CreateHatchBrush(HS_FDIAGONAL, RGB(128, 128, 128));
SelectObject(hdc, hBrush);
HPEN hpen = CreatePen(PS_SOLID, 5, RGB(128, 0, 0));
SelectObject(hdc, hpen);
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, hPen);
Ellipse(hdc, 75, 225, 125, 275);
Ellipse(hdc, 230, 225, 280, 275);
}
void tree(HDC hdc)
{
HPEN hPen;
hPen = CreatePen(PS_SOLID, 4, RGB(0, 255, 0));
SelectObject(hdc, hPen);
MoveToEx(hdc, 75, 440, NULL);
LineTo(hdc, 75, 625);
MoveToEx(hdc, 60, 460, NULL);
LineTo(hdc, 75, 475);
MoveToEx(hdc, 100, 475, NULL);
LineTo(hdc, 75, 500);
MoveToEx(hdc, 40, 480, NULL);
LineTo(hdc, 75, 520);
MoveToEx(hdc, 120, 500, NULL);
LineTo(hdc, 75, 545);
MoveToEx(hdc, 30, 520, NULL);
LineTo(hdc, 75, 560);
MoveToEx(hdc, 125, 535, NULL);
LineTo(hdc, 75, 580);
MoveToEx(hdc, 30, 558, NULL);
LineTo(hdc, 75, 600);
MoveToEx(hdc, 110, 580, NULL);
LineTo(hdc, 75, 610);
}
void traktor(HDC hdc)
{
HPEN hPen;
hPen = CreatePen(PS_SOLID, 2, RGB(220, 0, 0));
SelectObject(hdc, hPen);
HBRUSH hBrush;
hBrush = CreateSolidBrush(RGB(255, 0, 0));
SelectObject(hdc, hBrush);
Rectangle(hdc, 625, 600, 800, 650);
Rectangle(hdc, 700, 550, 800, 600);
MoveToEx(hdc, 625, 650, NULL);
LineTo(hdc, 800, 650);
LineTo(hdc, 800, 550);
LineTo(hdc, 700, 550);
LineTo(hdc, 700, 600);
LineTo(hdc, 625, 600);
LineTo(hdc, 625, 650);
hPen = CreatePen(PS_SOLID, 2, RGB(128, 120, 255));
SelectObject(hdc, hPen);
hBrush = CreateSolidBrush(RGB(128, 166, 255));
SelectObject(hdc, hBrush);
Rectangle(hdc, 700, 550, 725, 600);
MoveToEx(hdc, 700, 600, NULL);
LineTo(hdc, 725, 600);
LineTo(hdc, 725, 550);
LineTo(hdc, 700, 550);
LineTo(hdc, 700, 600);
//колеса
MoveToEx(hdc, 640, 650, NULL);
LineTo(hdc, 660, 675);
LineTo(hdc, 690, 650);
LineTo(hdc, 660, 625);
hPen = CreatePen(PS_SOLID, 3, RGB(0, 0, 0));
SelectObject(hdc, hPen);
hBrush = CreateHatchBrush(HS_FDIAGONAL, RGB(128, 128, 128));
SelectObject(hdc, hBrush);
Ellipse(hdc, 640, 625, 690, 675);
MoveToEx(hdc, 710, 640, NULL);
LineTo(hdc, 750, 675);
LineTo(hdc, 790, 640);
LineTo(hdc, 750, 600);
hPen = CreatePen(PS_SOLID, 3, RGB(0, 0, 0));
SelectObject(hdc, hPen);
hBrush = CreateHatchBrush(HS_FDIAGONAL, RGB(128, 128, 128));
SelectObject(hdc, hBrush);
Ellipse(hdc, 710, 600, 790, 675);
}
void cust1(HDC hdc)
{
HPEN hPen;
int x1 = 300, y1 = 150;
int x2 = 400, y2 = 250;
int p = 0;
do {
hPen = CreatePen(PS_SOLID, 2, RGB(199, 21, 133));
SelectObject(hdc, hPen);
MoveToEx(hdc, x1, y1, NULL);
LineTo(hdc, x2, y2);
x1 += 10;
p++;
} while (p < 20);
}
void cust2(HDC hdc)
{
HPEN hPen;
int x3 = 510, y3 = 250;
int x4 = 600, y4 = 250;
int i = 0;
int b = 0;
do {
MoveToEx(hdc, x3, y3, NULL);
LineTo(hdc, x4, y4);
x3 += 4;
y3 -= 11;
b++;
} while (b < 22);
x3 = 600;
y3 = 30;
do {
MoveToEx(hdc, x3, y3, NULL);
LineTo(hdc, x4, y4);
x3 += 5;
y3 += 11;
i++;
} while (i < 21);
}
void zabor(HDC hdc)
{
int x5 = 200, y5 = 50;
int x6 = 200, y6 = 100;
HPEN hPen;
do {
hPen = CreatePen(PS_SOLID, 1, RGB(255, 0, 0));
SelectObject(hdc, hPen);
MoveToEx(hdc, x5, y5, NULL);
LineTo(hdc, x6, y6);
x5 += 5;
x6 += 5;
} while (x5 <= 400);
}
void lestnica(HDC hdc)
{
HPEN hPen;
int x7 = 800, y7 = 300;
int x8 = 900, y8 = 300;
do {
hPen = CreatePen(PS_SOLID, 2, RGB(255, 255, 0));
SelectObject(hdc, hPen);
MoveToEx(hdc, x7, y7, NULL);
LineTo(hdc, x8, y8);
y7 += 10;
y8 += 10;
} while (y7 <= 700);
}
void trava(HDC hdc)
{
HPEN hPen;
int x9 = 100, y9 = 700;
int x10 = 100, y10 = 800;
do {
hPen = CreatePen(PS_SOLID, 1, RGB(50, 205, 50));
SelectObject(hdc, hPen);
MoveToEx(hdc, x9, y9, NULL);
LineTo(hdc, x10, y10);
x9 += 5;
x10 += 5;
} while (x9 <= 700);
}
// ЦЕЛЬ: Обрабатывает сообщения в главном окне.
//
// WM_COMMAND - обработать меню приложения
// WM_PAINT - Отрисовка главного окна
// WM_DESTROY - отправить сообщение о выходе и вернуться
//
//
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);
elka(hdc);
mashina(hdc);
traktor(hdc);
cust1(hdc);
cust2(hdc);
zabor(hdc);
trava(hdc);
lestnica(hdc);
tree(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;
}

3
лаб7/з4/з4.h Normal file
View File

@ -0,0 +1,3 @@
#pragma once
#include "resource.h"

BIN
лаб7/з4/з4.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
лаб7/з4/з4.rc Normal file

Binary file not shown.

148
лаб7/з4/з4.vcxproj Normal file
View File

@ -0,0 +1,148 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>17.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{ac2c4bac-b1f9-485d-84b2-0750035670d7}</ProjectGuid>
<RootNamespace>з4</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="framework.h" />
<ClInclude Include="Resource.h" />
<ClInclude Include="targetver.h" />
<ClInclude Include="з4.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="з4.cpp" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="з4.rc" />
</ItemGroup>
<ItemGroup>
<Image Include="small.ico" />
<Image Include="з4.ico" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View File

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Исходные файлы">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Файлы заголовков">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Файлы ресурсов">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="framework.h">
<Filter>Файлы заголовков</Filter>
</ClInclude>
<ClInclude Include="targetver.h">
<Filter>Файлы заголовков</Filter>
</ClInclude>
<ClInclude Include="Resource.h">
<Filter>Файлы заголовков</Filter>
</ClInclude>
<ClInclude Include="з4.h">
<Filter>Файлы заголовков</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="з4.cpp">
<Filter>Исходные файлы</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="з4.rc">
<Filter>Файлы ресурсов</Filter>
</ResourceCompile>
</ItemGroup>
<ItemGroup>
<Image Include="small.ico">
<Filter>Файлы ресурсов</Filter>
</Image>
<Image Include="з4.ico">
<Filter>Файлы ресурсов</Filter>
</Image>
</ItemGroup>
</Project>

71
лаб7/лаб7.sln Normal file
View File

@ -0,0 +1,71 @@

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", "лаб7\лаб7.vcxproj", "{1CA26D40-A3ED-4BEB-8C2D-9BD4B1139F77}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "з2", "D:\кода ВС\з2\з2.vcxproj", "{9ADC95EE-449B-4389-8D07-7179E6A323D1}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "з3", "D:\кода ВС\з3\з3.vcxproj", "{52785EA1-BE5C-4F5C-8A03-4D8EF4AEE032}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "з4", "з4\з4.vcxproj", "{AC2C4BAC-B1F9-485D-84B2-0750035670D7}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "p5", "D:\кода ВС\p5\p5.vcxproj", "{978F3A9A-4740-407C-B3C7-D12B33E052E3}"
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
{1CA26D40-A3ED-4BEB-8C2D-9BD4B1139F77}.Debug|x64.ActiveCfg = Debug|x64
{1CA26D40-A3ED-4BEB-8C2D-9BD4B1139F77}.Debug|x64.Build.0 = Debug|x64
{1CA26D40-A3ED-4BEB-8C2D-9BD4B1139F77}.Debug|x86.ActiveCfg = Debug|Win32
{1CA26D40-A3ED-4BEB-8C2D-9BD4B1139F77}.Debug|x86.Build.0 = Debug|Win32
{1CA26D40-A3ED-4BEB-8C2D-9BD4B1139F77}.Release|x64.ActiveCfg = Release|x64
{1CA26D40-A3ED-4BEB-8C2D-9BD4B1139F77}.Release|x64.Build.0 = Release|x64
{1CA26D40-A3ED-4BEB-8C2D-9BD4B1139F77}.Release|x86.ActiveCfg = Release|Win32
{1CA26D40-A3ED-4BEB-8C2D-9BD4B1139F77}.Release|x86.Build.0 = Release|Win32
{9ADC95EE-449B-4389-8D07-7179E6A323D1}.Debug|x64.ActiveCfg = Debug|x64
{9ADC95EE-449B-4389-8D07-7179E6A323D1}.Debug|x64.Build.0 = Debug|x64
{9ADC95EE-449B-4389-8D07-7179E6A323D1}.Debug|x86.ActiveCfg = Debug|Win32
{9ADC95EE-449B-4389-8D07-7179E6A323D1}.Debug|x86.Build.0 = Debug|Win32
{9ADC95EE-449B-4389-8D07-7179E6A323D1}.Release|x64.ActiveCfg = Release|x64
{9ADC95EE-449B-4389-8D07-7179E6A323D1}.Release|x64.Build.0 = Release|x64
{9ADC95EE-449B-4389-8D07-7179E6A323D1}.Release|x86.ActiveCfg = Release|Win32
{9ADC95EE-449B-4389-8D07-7179E6A323D1}.Release|x86.Build.0 = Release|Win32
{52785EA1-BE5C-4F5C-8A03-4D8EF4AEE032}.Debug|x64.ActiveCfg = Debug|x64
{52785EA1-BE5C-4F5C-8A03-4D8EF4AEE032}.Debug|x64.Build.0 = Debug|x64
{52785EA1-BE5C-4F5C-8A03-4D8EF4AEE032}.Debug|x86.ActiveCfg = Debug|Win32
{52785EA1-BE5C-4F5C-8A03-4D8EF4AEE032}.Debug|x86.Build.0 = Debug|Win32
{52785EA1-BE5C-4F5C-8A03-4D8EF4AEE032}.Release|x64.ActiveCfg = Release|x64
{52785EA1-BE5C-4F5C-8A03-4D8EF4AEE032}.Release|x64.Build.0 = Release|x64
{52785EA1-BE5C-4F5C-8A03-4D8EF4AEE032}.Release|x86.ActiveCfg = Release|Win32
{52785EA1-BE5C-4F5C-8A03-4D8EF4AEE032}.Release|x86.Build.0 = Release|Win32
{AC2C4BAC-B1F9-485D-84B2-0750035670D7}.Debug|x64.ActiveCfg = Debug|x64
{AC2C4BAC-B1F9-485D-84B2-0750035670D7}.Debug|x64.Build.0 = Debug|x64
{AC2C4BAC-B1F9-485D-84B2-0750035670D7}.Debug|x86.ActiveCfg = Debug|Win32
{AC2C4BAC-B1F9-485D-84B2-0750035670D7}.Debug|x86.Build.0 = Debug|Win32
{AC2C4BAC-B1F9-485D-84B2-0750035670D7}.Release|x64.ActiveCfg = Release|x64
{AC2C4BAC-B1F9-485D-84B2-0750035670D7}.Release|x64.Build.0 = Release|x64
{AC2C4BAC-B1F9-485D-84B2-0750035670D7}.Release|x86.ActiveCfg = Release|Win32
{AC2C4BAC-B1F9-485D-84B2-0750035670D7}.Release|x86.Build.0 = Release|Win32
{978F3A9A-4740-407C-B3C7-D12B33E052E3}.Debug|x64.ActiveCfg = Debug|x64
{978F3A9A-4740-407C-B3C7-D12B33E052E3}.Debug|x64.Build.0 = Debug|x64
{978F3A9A-4740-407C-B3C7-D12B33E052E3}.Debug|x86.ActiveCfg = Debug|Win32
{978F3A9A-4740-407C-B3C7-D12B33E052E3}.Debug|x86.Build.0 = Debug|Win32
{978F3A9A-4740-407C-B3C7-D12B33E052E3}.Release|x64.ActiveCfg = Release|x64
{978F3A9A-4740-407C-B3C7-D12B33E052E3}.Release|x64.Build.0 = Release|x64
{978F3A9A-4740-407C-B3C7-D12B33E052E3}.Release|x86.ActiveCfg = Release|Win32
{978F3A9A-4740-407C-B3C7-D12B33E052E3}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E4D0E877-9A83-4D53-9EC0-FDFD048A03EB}
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,22 @@
#include <stdio.h>
#include <Windows.h>
void aboutMe()
{
printf("Ńĺâîäí˙ńĺâ\n");
printf("Ńňŕíčńëŕâ\n");
printf("Ńĺđăĺĺâč÷\n");
printf("\n");
printf("Ăđóďďŕ: ĎČáä-13\n");
printf("04.09.2024\n");
printf("Ďđĺäěĺň: îńíîâű ďđîăŕěěčđîâŕíč˙\n");
printf("Ëŕáîđŕňîđíŕ˙ đŕáîňŕ š7\n");
}
void main()
{
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
aboutMe();
}

View File

@ -0,0 +1,136 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>17.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{1ca26d40-a3ed-4beb-8c2d-9bd4b1139f77}</ProjectGuid>
<RootNamespace>лаб7</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<ProjectName>з1</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include=аб7.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Исходные файлы">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Файлы заголовков">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Файлы ресурсов">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="лаб7.cpp">
<Filter>Исходные файлы</Filter>
</ClCompile>
</ItemGroup>
</Project>