Добавил проектRevert "Добавил проект"This reverts commit c8039882a4
.
Revert "Добавил проект"
This reverts commit c8039882a4
.
This commit is contained in:
parent
c8039882a4
commit
5323bddbdc
@ -1,61 +0,0 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio Version 16
|
|
||||||
VisualStudioVersion = 16.0.33529.622
|
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Lab09.10.OAIP.ProkonovKirill", "Lab09.10.OAIP.ProkonovKirill\Lab09.10.OAIP.ProkonovKirill.vcxproj", "{1D560CA6-0490-49B7-BB1D-6A7900EBBAF4}"
|
|
||||||
EndProject
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Lab10.OAIP.ProkonovKirill", "Lab10.OAIP.ProkonovKirill\Lab10.OAIP.ProkonovKirill.vcxproj", "{1EF50C36-9FBC-4C69-8136-D3B886A28BD6}"
|
|
||||||
EndProject
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Lab11_1.OAIP.ProkonovKirill", "Lab11_1.OAIP.ProkonovKirill\Lab11_1.OAIP.ProkonovKirill.vcxproj", "{EB446AE9-F444-42AF-B2C9-25D435A8E914}"
|
|
||||||
EndProject
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Lab12.OAIP.ProkonovKirill", "Lab12.OAIP.ProkonovKirill\Lab12.OAIP.ProkonovKirill.vcxproj", "{25CCD917-E83B-4E45-94AD-6A3F90325A1E}"
|
|
||||||
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
|
|
||||||
{1D560CA6-0490-49B7-BB1D-6A7900EBBAF4}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{1D560CA6-0490-49B7-BB1D-6A7900EBBAF4}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{1D560CA6-0490-49B7-BB1D-6A7900EBBAF4}.Debug|x86.ActiveCfg = Debug|Win32
|
|
||||||
{1D560CA6-0490-49B7-BB1D-6A7900EBBAF4}.Debug|x86.Build.0 = Debug|Win32
|
|
||||||
{1D560CA6-0490-49B7-BB1D-6A7900EBBAF4}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{1D560CA6-0490-49B7-BB1D-6A7900EBBAF4}.Release|x64.Build.0 = Release|x64
|
|
||||||
{1D560CA6-0490-49B7-BB1D-6A7900EBBAF4}.Release|x86.ActiveCfg = Release|Win32
|
|
||||||
{1D560CA6-0490-49B7-BB1D-6A7900EBBAF4}.Release|x86.Build.0 = Release|Win32
|
|
||||||
{1EF50C36-9FBC-4C69-8136-D3B886A28BD6}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{1EF50C36-9FBC-4C69-8136-D3B886A28BD6}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{1EF50C36-9FBC-4C69-8136-D3B886A28BD6}.Debug|x86.ActiveCfg = Debug|Win32
|
|
||||||
{1EF50C36-9FBC-4C69-8136-D3B886A28BD6}.Debug|x86.Build.0 = Debug|Win32
|
|
||||||
{1EF50C36-9FBC-4C69-8136-D3B886A28BD6}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{1EF50C36-9FBC-4C69-8136-D3B886A28BD6}.Release|x64.Build.0 = Release|x64
|
|
||||||
{1EF50C36-9FBC-4C69-8136-D3B886A28BD6}.Release|x86.ActiveCfg = Release|Win32
|
|
||||||
{1EF50C36-9FBC-4C69-8136-D3B886A28BD6}.Release|x86.Build.0 = Release|Win32
|
|
||||||
{EB446AE9-F444-42AF-B2C9-25D435A8E914}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{EB446AE9-F444-42AF-B2C9-25D435A8E914}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{EB446AE9-F444-42AF-B2C9-25D435A8E914}.Debug|x86.ActiveCfg = Debug|Win32
|
|
||||||
{EB446AE9-F444-42AF-B2C9-25D435A8E914}.Debug|x86.Build.0 = Debug|Win32
|
|
||||||
{EB446AE9-F444-42AF-B2C9-25D435A8E914}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{EB446AE9-F444-42AF-B2C9-25D435A8E914}.Release|x64.Build.0 = Release|x64
|
|
||||||
{EB446AE9-F444-42AF-B2C9-25D435A8E914}.Release|x86.ActiveCfg = Release|Win32
|
|
||||||
{EB446AE9-F444-42AF-B2C9-25D435A8E914}.Release|x86.Build.0 = Release|Win32
|
|
||||||
{25CCD917-E83B-4E45-94AD-6A3F90325A1E}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{25CCD917-E83B-4E45-94AD-6A3F90325A1E}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{25CCD917-E83B-4E45-94AD-6A3F90325A1E}.Debug|x86.ActiveCfg = Debug|Win32
|
|
||||||
{25CCD917-E83B-4E45-94AD-6A3F90325A1E}.Debug|x86.Build.0 = Debug|Win32
|
|
||||||
{25CCD917-E83B-4E45-94AD-6A3F90325A1E}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{25CCD917-E83B-4E45-94AD-6A3F90325A1E}.Release|x64.Build.0 = Release|x64
|
|
||||||
{25CCD917-E83B-4E45-94AD-6A3F90325A1E}.Release|x86.ActiveCfg = Release|Win32
|
|
||||||
{25CCD917-E83B-4E45-94AD-6A3F90325A1E}.Release|x86.Build.0 = Release|Win32
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
SolutionGuid = {21830DFB-7789-4EB6-9F51-9AD1FE9C8194}
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
@ -1,147 +0,0 @@
|
|||||||
<?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>16.0</VCProjectVersion>
|
|
||||||
<Keyword>Win32Proj</Keyword>
|
|
||||||
<ProjectGuid>{1d560ca6-0490-49b7-bb1d-6a7900ebbaf4}</ProjectGuid>
|
|
||||||
<RootNamespace>Lab0910OAIPProkonovKirill</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>v142</PlatformToolset>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</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" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<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="Source.cpp" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
||||||
<ImportGroup Label="ExtensionTargets">
|
|
||||||
</ImportGroup>
|
|
||||||
</Project>
|
|
@ -1,22 +0,0 @@
|
|||||||
<?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="Source.cpp">
|
|
||||||
<Filter>Исходные файлы</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
@ -1,281 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
//void main() {
|
|
||||||
// printf("main() start\n" "main() finish\n");
|
|
||||||
//
|
|
||||||
// //printf("main() finish\n");
|
|
||||||
//}
|
|
||||||
|
|
||||||
|
|
||||||
//int isPrime(int num) {
|
|
||||||
// int del = 2;
|
|
||||||
// while (del < num) {
|
|
||||||
// // åñëè num íàöåëî äåëèòüñÿ íà del
|
|
||||||
// if (num % del == 0) {
|
|
||||||
// // âîçâðàùàåì 0, ò.ê. ÷èñëî íå ïðîñòîå
|
|
||||||
// return 0;
|
|
||||||
// }
|
|
||||||
// del++;
|
|
||||||
// }
|
|
||||||
// // âîçâðàùàåì 1, ò.ê. íè îäíî ÷èñëî îò 2 äî num-1
|
|
||||||
// // íå ÿâëÿåòñÿ äåëèòåëåì
|
|
||||||
// return 1;
|
|
||||||
//}
|
|
||||||
//
|
|
||||||
//
|
|
||||||
////void main() {
|
|
||||||
//// int n = 10000;
|
|
||||||
////
|
|
||||||
//// int a = 1;
|
|
||||||
//// int i = 0;
|
|
||||||
//// while (i < n) {
|
|
||||||
//// if (isPrime(a)) {
|
|
||||||
//// printf("%d ", a);
|
|
||||||
//// i++;
|
|
||||||
//// }
|
|
||||||
//// a++;
|
|
||||||
//// }
|
|
||||||
////}
|
|
||||||
//
|
|
||||||
//void main() {
|
|
||||||
// int num = 20;
|
|
||||||
//
|
|
||||||
// while (1) {
|
|
||||||
// if (isPrime(num)) {
|
|
||||||
// printf("%d ", num);
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// num++;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
//}
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <Windows.h>
|
|
||||||
|
|
||||||
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 print50dds() {
|
|
||||||
int a = 1;
|
|
||||||
int i = 1;
|
|
||||||
do {
|
|
||||||
printf("%d ", a);
|
|
||||||
a += 2;
|
|
||||||
i += 1;
|
|
||||||
} while (i <= 5);
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_100to10_step10() {
|
|
||||||
int a = 100;
|
|
||||||
//int i = 100;
|
|
||||||
|
|
||||||
while(a >= 10) {
|
|
||||||
printf("%d ", a);
|
|
||||||
a -= 10;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_1000_to100_step100() {
|
|
||||||
int a = 1000;
|
|
||||||
while (a >= 100) {
|
|
||||||
printf("%d ", a);
|
|
||||||
a -= 100;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_checkout() {
|
|
||||||
float s;
|
|
||||||
float procent;
|
|
||||||
int years;
|
|
||||||
|
|
||||||
printf("S = ");
|
|
||||||
scanf_s("%f", &s);
|
|
||||||
|
|
||||||
printf("Ïðîöåíò = ");
|
|
||||||
scanf_s("%f", &procent);
|
|
||||||
|
|
||||||
printf("Êîëè÷åñòâî ëåò = ");
|
|
||||||
scanf_s("%d", &years);
|
|
||||||
|
|
||||||
int i = 1;
|
|
||||||
float current_amount = s;
|
|
||||||
|
|
||||||
|
|
||||||
while (i <= years) {
|
|
||||||
current_amount *= (1 + procent / 100);
|
|
||||||
printf("×åðåç %d ëåò: %.2f\n", i, current_amount);
|
|
||||||
++i;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void print_1000_to0_step23() {
|
|
||||||
int a = 1000;
|
|
||||||
label_while:
|
|
||||||
if (a>=0) {
|
|
||||||
printf("%d ", a);
|
|
||||||
a -= 23;
|
|
||||||
goto label_while;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_factorial() {
|
|
||||||
int a = 1;
|
|
||||||
int n;
|
|
||||||
printf("Ââåäèòå êîëè÷åñòâî ôàêòîðèàëîâ (N): ");
|
|
||||||
scanf_s("%d", &n);
|
|
||||||
int factorial1 = 1;
|
|
||||||
while (a <= n) {
|
|
||||||
factorial1 *= a;
|
|
||||||
printf("%d ", factorial1);
|
|
||||||
a++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_Fibonachi(){
|
|
||||||
printf("N ÷èñåë Ôèáîíà÷÷è:\n");
|
|
||||||
int f;
|
|
||||||
printf("Ââåäèòå N: ");
|
|
||||||
scanf_s("%d", &f);
|
|
||||||
|
|
||||||
int a1 = 1, b1 = 1, c1;
|
|
||||||
if (f == 1) {
|
|
||||||
printf("0 ");
|
|
||||||
}
|
|
||||||
else if (f == 2) {
|
|
||||||
printf("0 1 ");
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
printf("0 1 1 ");
|
|
||||||
int count = 3;
|
|
||||||
while (count < f) {
|
|
||||||
c1 = a1 + b1;
|
|
||||||
printf("%d ", c1);
|
|
||||||
a1 = b1;
|
|
||||||
b1 = c1;
|
|
||||||
count++;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
printf("\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void prime_factors() {
|
|
||||||
int n;
|
|
||||||
|
|
||||||
printf("Ââåäèòå ÷èñëî n: ");
|
|
||||||
|
|
||||||
scanf_s("%d", &n);
|
|
||||||
printf("Ðàçëîæåíèå ÷èñëà %d íà ïðîñòûå ìíîæèòåëè: ", n);
|
|
||||||
|
|
||||||
int del = 2;
|
|
||||||
|
|
||||||
label_while:
|
|
||||||
if (n > 1) {
|
|
||||||
if (n % del == 0) {
|
|
||||||
printf("%d ", del);
|
|
||||||
n = n/del;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
del++;
|
|
||||||
}
|
|
||||||
goto label_while;
|
|
||||||
}
|
|
||||||
|
|
||||||
printf("\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
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("\n");
|
|
||||||
printf("0: Âûéòè èç ïðîãðàììû\n");
|
|
||||||
printf("11: Âûâåñòè ÷èñëà îò 100 äî 10 ñ øàãîì 10\n");
|
|
||||||
printf("12: Âûâåñòè ÷èñëà îò 1000 äî 100 ñ øàãîì 100\n");
|
|
||||||
printf("13: Âûâåñòè îñòàòîê\n");
|
|
||||||
printf("\n");
|
|
||||||
printf("20: Âûâåñòè ÷èñëà îò 1000 äî 0 ñ øàãîì 23\n");
|
|
||||||
printf("21: Âûâåñòè ÷èñëà ïåðâûõ ôàêòîðèàëîâ\n");
|
|
||||||
printf("22: Âûâåñòè ÷èñëà N Ôèáîíà÷è\n");
|
|
||||||
printf("23: Ðàçëîæåíèå ÷èñëà íà ïðîñòûå ìíîæèòåëè\n");
|
|
||||||
|
|
||||||
scanf_s("%d", &n);
|
|
||||||
|
|
||||||
|
|
||||||
switch (n) {
|
|
||||||
case 1:
|
|
||||||
printf("\n");
|
|
||||||
print1_10();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 2:
|
|
||||||
printf("\n");
|
|
||||||
print10_1();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 3:
|
|
||||||
printf("\n");
|
|
||||||
print50dds();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 11:
|
|
||||||
printf("\n");
|
|
||||||
print_100to10_step10();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 12:
|
|
||||||
printf("\n");
|
|
||||||
print_1000_to100_step100();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 13:
|
|
||||||
printf("\n");
|
|
||||||
print_checkout();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 20:
|
|
||||||
printf("\n");
|
|
||||||
print_1000_to0_step23();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 21:
|
|
||||||
printf("\n");
|
|
||||||
print_factorial();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 22:
|
|
||||||
printf("\n");
|
|
||||||
print_Fibonachi();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 23:
|
|
||||||
printf("\n");
|
|
||||||
prime_factors();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
} while (n != 0);
|
|
||||||
}
|
|
||||||
|
|
@ -1,147 +0,0 @@
|
|||||||
<?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>16.0</VCProjectVersion>
|
|
||||||
<Keyword>Win32Proj</Keyword>
|
|
||||||
<ProjectGuid>{1ef50c36-9fbc-4c69-8136-d3b886a28bd6}</ProjectGuid>
|
|
||||||
<RootNamespace>Lab10OAIPProkonovKirill</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>v142</PlatformToolset>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</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" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<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="Source.cpp" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
||||||
<ImportGroup Label="ExtensionTargets">
|
|
||||||
</ImportGroup>
|
|
||||||
</Project>
|
|
@ -1,22 +0,0 @@
|
|||||||
<?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="Source.cpp">
|
|
||||||
<Filter>Исходные файлы</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
@ -1,117 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#include <Windows.h>
|
|
||||||
|
|
||||||
void print_hours_m() {
|
|
||||||
printf("Example2() START\n");
|
|
||||||
|
|
||||||
int h = 0;
|
|
||||||
do {
|
|
||||||
int m = 0;
|
|
||||||
do {
|
|
||||||
printf("%02d:%02d ", h, m);
|
|
||||||
m += 10;
|
|
||||||
} while (m < 60);
|
|
||||||
|
|
||||||
printf("\n");
|
|
||||||
h++;
|
|
||||||
} while (h < 24);
|
|
||||||
|
|
||||||
printf("Example2() FINISH\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_NxM() {
|
|
||||||
printf("Task 1() START\n");
|
|
||||||
|
|
||||||
int n, m;
|
|
||||||
printf("Ââåäèòå êîëè÷åñòâî ñòðîê: ");
|
|
||||||
scanf_s("%d", &n);
|
|
||||||
printf("\nÂâåäèòå êîëè÷åñòâî ñòîëáöîâ: ");
|
|
||||||
scanf_s("%d", &m);
|
|
||||||
|
|
||||||
int i = 1;
|
|
||||||
do {
|
|
||||||
int j = 1;
|
|
||||||
do {
|
|
||||||
printf("%d%d ", i, j);
|
|
||||||
j += 1;
|
|
||||||
if (j >= 10) break;
|
|
||||||
} while (j <= m);
|
|
||||||
|
|
||||||
printf("\n");
|
|
||||||
i++;
|
|
||||||
if (i >= 10) break;
|
|
||||||
} while (n >= i);
|
|
||||||
|
|
||||||
printf("Task 1() FINISH\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_Pifagor() {
|
|
||||||
printf("Task 2 Pifagor() START\n");
|
|
||||||
|
|
||||||
int i = 1;
|
|
||||||
do {
|
|
||||||
int j = 1;
|
|
||||||
do {
|
|
||||||
printf("%3d ", i*j);
|
|
||||||
j += 1;
|
|
||||||
} while (j <= 10);
|
|
||||||
|
|
||||||
printf("\n");
|
|
||||||
i++;
|
|
||||||
} while (i <= 10);
|
|
||||||
|
|
||||||
printf("Task 2 Pifagor() FINISH\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_DrawImage() {
|
|
||||||
printf("Task DrawImage() START\n");
|
|
||||||
|
|
||||||
int i = 5;
|
|
||||||
do {
|
|
||||||
int j = 5;
|
|
||||||
do {
|
|
||||||
printf("%d", j);
|
|
||||||
j -= 1;
|
|
||||||
} while (j >= 6-i);
|
|
||||||
|
|
||||||
printf("\n");
|
|
||||||
i--;
|
|
||||||
} while (i >= 1);
|
|
||||||
|
|
||||||
printf("Task DrawImage() FINISH\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
SetConsoleCP(1251);
|
|
||||||
SetConsoleOutputCP(1251);
|
|
||||||
|
|
||||||
int n;
|
|
||||||
do {
|
|
||||||
printf("Âûáåðèòå íóæíóþ âàì îïåðàöèþ:\n");
|
|
||||||
printf("1: Âûâåñòè òàáëè÷êó N x M\n");
|
|
||||||
printf("2: Âûâåñòè òàáëèöó Ïèôàãîðà\n");
|
|
||||||
printf("3: Âûâåñòè óçîð\n");
|
|
||||||
printf("4: Âûâåñòè ÷àñû è ìèíóòû. Ìèíóòû ñ øàãîì = 10\n");
|
|
||||||
printf("0: Âûéòè èç ïðîãðàììû\n");
|
|
||||||
scanf_s("%d", &n);
|
|
||||||
|
|
||||||
switch (n) {
|
|
||||||
case 1:
|
|
||||||
print_NxM();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
print_Pifagor();
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
print_DrawImage();
|
|
||||||
break;
|
|
||||||
//case 4:
|
|
||||||
// print_DrawImage2();
|
|
||||||
// break;
|
|
||||||
case 4:
|
|
||||||
print_hours_m();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
} while (n != 0);
|
|
||||||
}
|
|
@ -1,150 +0,0 @@
|
|||||||
<?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>16.0</VCProjectVersion>
|
|
||||||
<Keyword>Win32Proj</Keyword>
|
|
||||||
<ProjectGuid>{23532a75-5e82-46de-a638-b6c8b8f52174}</ProjectGuid>
|
|
||||||
<RootNamespace>Lab11OAIPProkonovKirill</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>v142</PlatformToolset>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</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" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<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></ItemGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
||||||
<ImportGroup Label="ExtensionTargets">
|
|
||||||
</ImportGroup>
|
|
||||||
</Project>
|
|
@ -1,17 +0,0 @@
|
|||||||
<?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>
|
|
||||||
</Project>
|
|
@ -1,20 +0,0 @@
|
|||||||
// Lab111.OAIP.ProkonovKirill.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
|
|
||||||
//
|
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
std::cout << "Hello World!\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Запуск программы: CTRL+F5 или меню "Отладка" > "Запуск без отладки"
|
|
||||||
// Отладка программы: F5 или меню "Отладка" > "Запустить отладку"
|
|
||||||
|
|
||||||
// Советы по началу работы
|
|
||||||
// 1. В окне обозревателя решений можно добавлять файлы и управлять ими.
|
|
||||||
// 2. В окне Team Explorer можно подключиться к системе управления версиями.
|
|
||||||
// 3. В окне "Выходные данные" можно просматривать выходные данные сборки и другие сообщения.
|
|
||||||
// 4. В окне "Список ошибок" можно просматривать ошибки.
|
|
||||||
// 5. Последовательно выберите пункты меню "Проект" > "Добавить новый элемент", чтобы создать файлы кода, или "Проект" > "Добавить существующий элемент", чтобы добавить в проект существующие файлы кода.
|
|
||||||
// 6. Чтобы снова открыть этот проект позже, выберите пункты меню "Файл" > "Открыть" > "Проект" и выберите SLN-файл.
|
|
@ -1,147 +0,0 @@
|
|||||||
<?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>16.0</VCProjectVersion>
|
|
||||||
<Keyword>Win32Proj</Keyword>
|
|
||||||
<ProjectGuid>{77038eb4-9e4f-4349-b3b4-cf803984c2fd}</ProjectGuid>
|
|
||||||
<RootNamespace>Lab111OAIPProkonovKirill</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>v142</PlatformToolset>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</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" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<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="Lab111.OAIP.ProkonovKirill.cpp" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
||||||
<ImportGroup Label="ExtensionTargets">
|
|
||||||
</ImportGroup>
|
|
||||||
</Project>
|
|
@ -1,22 +0,0 @@
|
|||||||
<?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="Lab111.OAIP.ProkonovKirill.cpp">
|
|
||||||
<Filter>Исходные файлы</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
@ -1,500 +0,0 @@
|
|||||||
// Lab11_1.OAIP.ProkonovKirill.cpp : Определяет точку входа для приложения.
|
|
||||||
//
|
|
||||||
|
|
||||||
#include "framework.h"
|
|
||||||
#include "Lab11_1.OAIP.ProkonovKirill.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_LAB111OAIPPROKONOVKIRILL, szWindowClass, MAX_LOADSTRING);
|
|
||||||
MyRegisterClass(hInstance);
|
|
||||||
|
|
||||||
// Выполнить инициализацию приложения:
|
|
||||||
if (!InitInstance (hInstance, nCmdShow))
|
|
||||||
{
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_LAB111OAIPPROKONOVKIRILL));
|
|
||||||
|
|
||||||
MSG msg;
|
|
||||||
|
|
||||||
// Цикл основного сообщения:
|
|
||||||
while (GetMessage(&msg, nullptr, 0, 0))
|
|
||||||
{
|
|
||||||
if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
|
|
||||||
{
|
|
||||||
TranslateMessage(&msg);
|
|
||||||
DispatchMessage(&msg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return (int) msg.wParam;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TestImage0(HDC hdc, int cx, int cy) {
|
|
||||||
HPEN hPen;
|
|
||||||
hPen = CreatePen(PS_SOLID, 2, RGB(255, 0, 0));
|
|
||||||
SelectObject(hdc, hPen);
|
|
||||||
|
|
||||||
POINT p[4];
|
|
||||||
p[0].x = cx;
|
|
||||||
p[0].y = cy + 20;
|
|
||||||
p[1].x = cx + 20;
|
|
||||||
p[1].y = cy - 20;
|
|
||||||
p[2].x = cx - 20;
|
|
||||||
p[2].y = cy - 20;
|
|
||||||
p[3].x = cx;
|
|
||||||
p[3].y = cy + 20;
|
|
||||||
|
|
||||||
Polyline(hdc, p, 4);
|
|
||||||
DeleteObject(hPen);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Image0(HDC hdc, int cx, int cy, COLORREF color) {
|
|
||||||
HPEN hPen;
|
|
||||||
hPen = CreatePen(PS_SOLID, 2, color);
|
|
||||||
SelectObject(hdc, hPen);
|
|
||||||
|
|
||||||
POINT p[5] = {
|
|
||||||
cx, cy + 20,
|
|
||||||
cx + 20, cy - 20,
|
|
||||||
cx - 20, cy - 20,
|
|
||||||
cx, cy + 20,
|
|
||||||
cx, cy + 20,
|
|
||||||
};
|
|
||||||
|
|
||||||
Polyline(hdc, p, 4);
|
|
||||||
DeleteObject(hPen);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Image1(HDC hdc, int cx, int cy, COLORREF color) {
|
|
||||||
HPEN hPen = CreatePen(PS_SOLID, 2, color);
|
|
||||||
SelectObject(hdc, hPen);
|
|
||||||
|
|
||||||
POINT p[4] = {
|
|
||||||
cx, cy - 20,
|
|
||||||
cx + 20, cy + 20,
|
|
||||||
cx - 20, cy + 20,
|
|
||||||
cx, cy - 20
|
|
||||||
};
|
|
||||||
Polyline(hdc, p, 4);
|
|
||||||
|
|
||||||
DeleteObject(hPen);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Image2(HDC hdc, int cx, int cy, COLORREF color) {
|
|
||||||
HPEN hPen = CreatePen(PS_SOLID, 2, color);
|
|
||||||
SelectObject(hdc, hPen);
|
|
||||||
|
|
||||||
POINT p[5] = {
|
|
||||||
cx, cy - 20,
|
|
||||||
cx + 20, cy - 40,
|
|
||||||
cx + 40, cy - 20,
|
|
||||||
cx + 20, cy,
|
|
||||||
cx, cy - 20,
|
|
||||||
};
|
|
||||||
Polyline(hdc, p, 5);
|
|
||||||
|
|
||||||
DeleteObject(hPen);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Image3(HDC hdc, int cx, int cy, COLORREF color) {
|
|
||||||
HPEN hPen = CreatePen(PS_SOLID, 2, color);
|
|
||||||
SelectObject(hdc, hPen);
|
|
||||||
|
|
||||||
POINT p[5] = {
|
|
||||||
cx, cy,
|
|
||||||
cx - 20, cy - 20,
|
|
||||||
cx, cy + 20,
|
|
||||||
cx + 20, cy -20,
|
|
||||||
cx, cy,
|
|
||||||
};
|
|
||||||
Polyline(hdc, p, 5);
|
|
||||||
|
|
||||||
DeleteObject(hPen);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Image4(HDC hdc, int cx, int cy, COLORREF color) {
|
|
||||||
HPEN hPen = CreatePen(PS_SOLID, 2, color);
|
|
||||||
SelectObject(hdc, hPen);
|
|
||||||
|
|
||||||
POINT p[7] = {
|
|
||||||
cx, cy,
|
|
||||||
cx + 20, cy + 10,
|
|
||||||
cx - 20, cy + 10,
|
|
||||||
cx - 20, cy + 30,
|
|
||||||
cx - 20, cy - 10,
|
|
||||||
cx + 20, cy - 10,
|
|
||||||
cx, cy
|
|
||||||
};
|
|
||||||
Polyline(hdc, p, 7);
|
|
||||||
|
|
||||||
DeleteObject(hPen);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Image5(HDC hdc, int cx, int cy, COLORREF color) {
|
|
||||||
HPEN hPen = CreatePen(PS_SOLID, 2, color);
|
|
||||||
SelectObject(hdc, hPen);
|
|
||||||
|
|
||||||
POINT p[7] = {
|
|
||||||
cx, cy,
|
|
||||||
cx + 20, cy + 10,
|
|
||||||
cx + 20, cy - 10,
|
|
||||||
cx, cy,
|
|
||||||
cx - 20, cy + 10,
|
|
||||||
cx - 20, cy - 10,
|
|
||||||
cx, cy,
|
|
||||||
};
|
|
||||||
Polyline(hdc, p, 7);
|
|
||||||
|
|
||||||
DeleteObject(hPen);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Image6(HDC hdc, int cx, int cy, COLORREF color) {
|
|
||||||
HPEN hPen = CreatePen(PS_SOLID, 2, color);
|
|
||||||
SelectObject(hdc, hPen);
|
|
||||||
|
|
||||||
POINT p[10] = {
|
|
||||||
cx - 40, cy + 20,
|
|
||||||
cx - 30, cy - 10,
|
|
||||||
cx - 20, cy + 10,
|
|
||||||
cx - 10, cy - 20,
|
|
||||||
cx, cy + 10,
|
|
||||||
cx + 10, cy - 20,
|
|
||||||
cx + 20, cy + 10,
|
|
||||||
cx + 30, cy - 10,
|
|
||||||
cx + 40, cy + 20,
|
|
||||||
cx - 40, cy + 20,
|
|
||||||
};
|
|
||||||
|
|
||||||
Polyline(hdc, p, 10);
|
|
||||||
|
|
||||||
DeleteObject(hPen);
|
|
||||||
}
|
|
||||||
|
|
||||||
void PictureFLineY(HDC hdc, void(*pfImage)(HDC hdc, int cx, int cy, COLORREF color)) {
|
|
||||||
short x = 40;
|
|
||||||
short y = 40;
|
|
||||||
char i = 0;
|
|
||||||
while (i < 6) {
|
|
||||||
pfImage(hdc, x, y, RGB(255, 0, 0));
|
|
||||||
y += 50;
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void Picture0(HDC hdc) {
|
|
||||||
Image0(hdc, 40, 40, RGB(255, 0, 0)); // Код был в лекции
|
|
||||||
Image0(hdc, 140, 40, RGB(255, 0, 0));
|
|
||||||
Image0(hdc, 240, 40, RGB(255, 0, 0));
|
|
||||||
Image0(hdc, 240, 240, RGB(255, 0, 0));
|
|
||||||
Image0(hdc, 40, 240, RGB(255, 0, 0));
|
|
||||||
}
|
|
||||||
|
|
||||||
void Picture1(HDC hdc) {
|
|
||||||
Image1(hdc, 40, 40, RGB(255, 0, 0));
|
|
||||||
Image1(hdc, 140, 40, RGB(255, 0, 0));
|
|
||||||
Image1(hdc, 240, 40, RGB(255, 0, 0));
|
|
||||||
Image1(hdc, 240, 240, RGB(255, 0, 0));
|
|
||||||
Image1(hdc, 40, 240, RGB(255, 0, 0));
|
|
||||||
}
|
|
||||||
|
|
||||||
void Romb1(HDC hdc) {
|
|
||||||
Image2(hdc, 40, 40, RGB(255, 0, 0));
|
|
||||||
Image2(hdc, 140, 40, RGB(255, 0, 0));
|
|
||||||
Image2(hdc, 240, 40, RGB(255, 0, 0));
|
|
||||||
Image2(hdc, 240, 240, RGB(255, 0, 0));
|
|
||||||
Image2(hdc, 40, 240, RGB(255, 0, 0));
|
|
||||||
}
|
|
||||||
|
|
||||||
void CheckMark(HDC hdc) {
|
|
||||||
Image3(hdc, 40, 40, RGB(255, 0, 0));
|
|
||||||
Image3(hdc, 140, 40, RGB(255, 0, 0));
|
|
||||||
Image3(hdc, 240, 40, RGB(255, 0, 0));
|
|
||||||
Image3(hdc, 240, 240, RGB(255, 0, 0));
|
|
||||||
Image3(hdc, 40, 240, RGB(255, 0, 0));
|
|
||||||
}
|
|
||||||
|
|
||||||
void Flag1(HDC hdc) {
|
|
||||||
Image4(hdc, 40, 40, RGB(255, 0, 0));
|
|
||||||
Image4(hdc, 140, 40, RGB(255, 0, 0));
|
|
||||||
Image4(hdc, 240, 40, RGB(255, 0, 0));
|
|
||||||
Image4(hdc, 240, 240, RGB(255, 0, 0));
|
|
||||||
Image4(hdc, 40, 240, RGB(255, 0, 0));
|
|
||||||
}
|
|
||||||
|
|
||||||
void Infinity(HDC hdc) {
|
|
||||||
Image5(hdc, 40, 40, RGB(255, 0, 0));
|
|
||||||
Image5(hdc, 140, 40, RGB(255, 0, 0));
|
|
||||||
Image5(hdc, 240, 40, RGB(255, 0, 0));
|
|
||||||
Image5(hdc, 240, 240, RGB(255, 0, 0));
|
|
||||||
Image5(hdc, 40, 240, RGB(255, 0, 0));
|
|
||||||
}
|
|
||||||
|
|
||||||
void Crown(HDC hdc) {
|
|
||||||
Image6(hdc, 40, 40, RGB(255, 0, 0));
|
|
||||||
Image6(hdc, 140, 40, RGB(255, 0, 0));
|
|
||||||
Image6(hdc, 240, 40, RGB(255, 0, 0));
|
|
||||||
Image6(hdc, 240, 240, RGB(255, 0, 0));
|
|
||||||
Image6(hdc, 40, 240, RGB(255, 0, 0));
|
|
||||||
}
|
|
||||||
|
|
||||||
void Picture4Lines(HDC hdc) {
|
|
||||||
short y = 40;
|
|
||||||
char i = 0;
|
|
||||||
|
|
||||||
while (i < 6) {
|
|
||||||
short x = 40;
|
|
||||||
char j = 0;
|
|
||||||
while (j < 10) {
|
|
||||||
Image4(hdc, x, y, RGB(255, 0, 0));
|
|
||||||
x += 50;
|
|
||||||
j++;
|
|
||||||
}
|
|
||||||
y += 50;
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void Picture4ColorLines(HDC hdc) {
|
|
||||||
unsigned char r = 255;
|
|
||||||
unsigned char g = 0;
|
|
||||||
short y = 40;
|
|
||||||
char i = 0;
|
|
||||||
|
|
||||||
while (i < 6) {
|
|
||||||
short x = 40;
|
|
||||||
char j = 0;
|
|
||||||
unsigned char b = 0;
|
|
||||||
|
|
||||||
while (j < 10) {
|
|
||||||
Image4(hdc, x, y, RGB(r, g, b));
|
|
||||||
x += 50;
|
|
||||||
j++;
|
|
||||||
|
|
||||||
b += 25;
|
|
||||||
}
|
|
||||||
y += 50;
|
|
||||||
i++;
|
|
||||||
|
|
||||||
g += 50;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
enum Modes {
|
|
||||||
image0,
|
|
||||||
image1,
|
|
||||||
romb1,
|
|
||||||
checkMark,
|
|
||||||
flag1,
|
|
||||||
image1_line,
|
|
||||||
//image1_with_colors,
|
|
||||||
image2,
|
|
||||||
infinity,
|
|
||||||
crown,
|
|
||||||
//image2_with_colors,
|
|
||||||
//image3,
|
|
||||||
//image3_lines,
|
|
||||||
//image3_with_colors,
|
|
||||||
//image4,
|
|
||||||
image4_lines,
|
|
||||||
image4_with_colors,
|
|
||||||
mode_none
|
|
||||||
};
|
|
||||||
|
|
||||||
enum Modes mode = image0;
|
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
// ФУНКЦИЯ: 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_LAB111OAIPPROKONOVKIRILL));
|
|
||||||
wcex.hCursor = LoadCursor(nullptr, IDC_ARROW);
|
|
||||||
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
|
|
||||||
wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_LAB111OAIPPROKONOVKIRILL);
|
|
||||||
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 - отправить сообщение о выходе и вернуться
|
|
||||||
//
|
|
||||||
//
|
|
||||||
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_KEYDOWN:
|
|
||||||
mode = (enum Modes)(mode + 1); // переключение на следующий режим
|
|
||||||
if (mode == mode_none) mode = image0; // если режимы закончились - начинаем заново
|
|
||||||
InvalidateRect(hWnd, NULL, TRUE);
|
|
||||||
break;
|
|
||||||
case WM_PAINT:
|
|
||||||
{
|
|
||||||
PAINTSTRUCT ps;
|
|
||||||
HDC hdc = BeginPaint(hWnd, &ps);
|
|
||||||
// TODO: Добавьте сюда любой код прорисовки, использующий HDC...
|
|
||||||
|
|
||||||
switch (mode) {
|
|
||||||
case image0:
|
|
||||||
Picture0(hdc); // Код выше
|
|
||||||
break;
|
|
||||||
case image1:
|
|
||||||
Picture1(hdc); // Код выше
|
|
||||||
break;
|
|
||||||
case romb1:
|
|
||||||
Romb1(hdc); // Код выше
|
|
||||||
break;
|
|
||||||
case checkMark:
|
|
||||||
CheckMark(hdc); // Код выше
|
|
||||||
break;
|
|
||||||
case flag1:
|
|
||||||
Flag1(hdc); // Код выше
|
|
||||||
break;
|
|
||||||
case image1_line:
|
|
||||||
PictureFLineY(hdc, Image1); // Код был в лекции
|
|
||||||
break;
|
|
||||||
case image2:
|
|
||||||
PictureFLineY(hdc, Image2); // Код был в лекции
|
|
||||||
break;
|
|
||||||
case infinity:
|
|
||||||
Infinity(hdc); // Код был в лекции
|
|
||||||
break;
|
|
||||||
case image4_lines:
|
|
||||||
Picture4Lines(hdc);
|
|
||||||
break;
|
|
||||||
case image4_with_colors:
|
|
||||||
Picture4ColorLines(hdc);
|
|
||||||
break;
|
|
||||||
case crown:
|
|
||||||
Crown(hdc);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
@ -1,3 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include "resource.h"
|
|
Binary file not shown.
Before Width: | Height: | Size: 45 KiB |
Binary file not shown.
@ -1,160 +0,0 @@
|
|||||||
<?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>16.0</VCProjectVersion>
|
|
||||||
<Keyword>Win32Proj</Keyword>
|
|
||||||
<ProjectGuid>{eb446ae9-f444-42af-b2c9-25d435a8e914}</ProjectGuid>
|
|
||||||
<RootNamespace>Lab111OAIPProkonovKirill</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>v142</PlatformToolset>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</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" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<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="Lab11_1.OAIP.ProkonovKirill.h" />
|
|
||||||
<ClInclude Include="Resource.h" />
|
|
||||||
<ClInclude Include="targetver.h" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="Lab11_1.OAIP.ProkonovKirill.cpp" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="Lab11_1.OAIP.ProkonovKirill.rc" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Image Include="Lab11_1.OAIP.ProkonovKirill.ico" />
|
|
||||||
<Image Include="small.ico" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
||||||
<ImportGroup Label="ExtensionTargets">
|
|
||||||
</ImportGroup>
|
|
||||||
</Project>
|
|
@ -1,49 +0,0 @@
|
|||||||
<?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="Lab11_1.OAIP.ProkonovKirill.h">
|
|
||||||
<Filter>Файлы заголовков</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="Lab11_1.OAIP.ProkonovKirill.cpp">
|
|
||||||
<Filter>Исходные файлы</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="Lab11_1.OAIP.ProkonovKirill.rc">
|
|
||||||
<Filter>Файлы ресурсов</Filter>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Image Include="small.ico">
|
|
||||||
<Filter>Файлы ресурсов</Filter>
|
|
||||||
</Image>
|
|
||||||
<Image Include="Lab11_1.OAIP.ProkonovKirill.ico">
|
|
||||||
<Filter>Файлы ресурсов</Filter>
|
|
||||||
</Image>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
@ -1,30 +0,0 @@
|
|||||||
//{{NO_DEPENDENCIES}}
|
|
||||||
// Включаемый файл, созданный в Microsoft Visual C++.
|
|
||||||
// Используется Lab11_1.OAIP.ProkonovKirill.rc
|
|
||||||
|
|
||||||
#define IDS_APP_TITLE 103
|
|
||||||
|
|
||||||
#define IDR_MAINFRAME 128
|
|
||||||
#define IDD_LAB111OAIPPROKONOVKIRILL_DIALOG 102
|
|
||||||
#define IDD_ABOUTBOX 103
|
|
||||||
#define IDM_ABOUT 104
|
|
||||||
#define IDM_EXIT 105
|
|
||||||
#define IDI_LAB111OAIPPROKONOVKIRILL 107
|
|
||||||
#define IDI_SMALL 108
|
|
||||||
#define IDC_LAB111OAIPPROKONOVKIRILL 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
|
|
@ -1,15 +0,0 @@
|
|||||||
// 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>
|
|
Binary file not shown.
Before Width: | Height: | Size: 45 KiB |
@ -1,6 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
// // При включении SDKDDKVer.h будет задана самая новая из доступных платформ Windows.
|
|
||||||
// Если вы планируете сборку приложения для предыдущей версии платформы Windows, включите WinSDKVer.h и
|
|
||||||
// задайте желаемую платформу в макросе _WIN32_WINNT, прежде чем включать SDKDDKVer.h.
|
|
||||||
#include <SDKDDKVer.h>
|
|
@ -1,381 +0,0 @@
|
|||||||
// Lab12.OAIP.ProkonovKirill.cpp : Определяет точку входа для приложения.
|
|
||||||
//
|
|
||||||
|
|
||||||
#include "framework.h"
|
|
||||||
#include "Lab12.OAIP.ProkonovKirill.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_LAB12OAIPPROKONOVKIRILL, szWindowClass, MAX_LOADSTRING);
|
|
||||||
MyRegisterClass(hInstance);
|
|
||||||
|
|
||||||
// Выполнить инициализацию приложения:
|
|
||||||
if (!InitInstance (hInstance, nCmdShow))
|
|
||||||
{
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_LAB12OAIPPROKONOVKIRILL));
|
|
||||||
|
|
||||||
MSG msg;
|
|
||||||
|
|
||||||
// Цикл основного сообщения:
|
|
||||||
while (GetMessage(&msg, nullptr, 0, 0))
|
|
||||||
{
|
|
||||||
if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
|
|
||||||
{
|
|
||||||
TranslateMessage(&msg);
|
|
||||||
DispatchMessage(&msg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return (int) msg.wParam;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Image0(HDC hdc, int cx, int cy, COLORREF color) {
|
|
||||||
HPEN hPen;
|
|
||||||
hPen = CreatePen(PS_SOLID, 2, color);
|
|
||||||
SelectObject(hdc, hPen);
|
|
||||||
|
|
||||||
POINT p[5] = {
|
|
||||||
cx, cy + 20,
|
|
||||||
cx + 20, cy - 20,
|
|
||||||
cx - 20, cy - 20,
|
|
||||||
cx, cy + 20,
|
|
||||||
cx, cy + 20,
|
|
||||||
};
|
|
||||||
|
|
||||||
Polyline(hdc, p, 4);
|
|
||||||
DeleteObject(hPen);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void Image1(HDC hdc, int cx, int cy, COLORREF color) {
|
|
||||||
HPEN hPen = CreatePen(PS_SOLID, 2, color);
|
|
||||||
SelectObject(hdc, hPen);
|
|
||||||
|
|
||||||
POINT p[4] = {
|
|
||||||
cx, cy - 20,
|
|
||||||
cx + 20, cy + 20,
|
|
||||||
cx - 20, cy + 20,
|
|
||||||
cx, cy - 20
|
|
||||||
};
|
|
||||||
Polyline(hdc, p, 4);
|
|
||||||
|
|
||||||
DeleteObject(hPen);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Image2(HDC hdc, int cx, int cy, COLORREF color) {
|
|
||||||
HPEN hPen = CreatePen(PS_SOLID, 2, color);
|
|
||||||
SelectObject(hdc, hPen);
|
|
||||||
|
|
||||||
POINT p[5] = {
|
|
||||||
cx, cy,
|
|
||||||
cx - 20, cy - 20,
|
|
||||||
cx, cy + 20,
|
|
||||||
cx + 20, cy - 20,
|
|
||||||
cx, cy,
|
|
||||||
};
|
|
||||||
Polyline(hdc, p, 5);
|
|
||||||
|
|
||||||
DeleteObject(hPen);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Image3(HDC hdc, int cx, int cy, COLORREF color) {
|
|
||||||
HPEN hPen = CreatePen(PS_SOLID, 2, color);
|
|
||||||
SelectObject(hdc, hPen);
|
|
||||||
|
|
||||||
POINT p[7] = {
|
|
||||||
cx, cy,
|
|
||||||
cx + 20, cy + 10,
|
|
||||||
cx - 20, cy + 10,
|
|
||||||
cx - 20, cy + 30,
|
|
||||||
cx - 20, cy - 10,
|
|
||||||
cx + 20, cy - 10,
|
|
||||||
cx, cy
|
|
||||||
};
|
|
||||||
Polyline(hdc, p, 7);
|
|
||||||
|
|
||||||
DeleteObject(hPen);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Image4(HDC hdc, int cx, int cy, COLORREF color) {
|
|
||||||
HPEN hPen = CreatePen(PS_SOLID, 2, color);
|
|
||||||
SelectObject(hdc, hPen);
|
|
||||||
|
|
||||||
POINT p[7] = {
|
|
||||||
cx, cy,
|
|
||||||
cx + 20, cy + 10,
|
|
||||||
cx + 20, cy - 10,
|
|
||||||
cx, cy,
|
|
||||||
cx - 20, cy + 10,
|
|
||||||
cx - 20, cy - 10,
|
|
||||||
cx, cy,
|
|
||||||
};
|
|
||||||
Polyline(hdc, p, 7);
|
|
||||||
|
|
||||||
DeleteObject(hPen);
|
|
||||||
}
|
|
||||||
|
|
||||||
struct Image {
|
|
||||||
int x; // координата X
|
|
||||||
int y; // координата Y
|
|
||||||
int vx; // изменение координаты X = скорость по X
|
|
||||||
int vy; // изменение координаты Y = скорость по Y
|
|
||||||
COLORREF color; // цвет фигуры
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef struct Image IMAGE;
|
|
||||||
|
|
||||||
IMAGE im2 = { 400, 200, -10, 0, RGB(0, 100, 0) };
|
|
||||||
|
|
||||||
IMAGE im3 = { 600, 200, 0, 10, RGB(0, 100, 0) };
|
|
||||||
|
|
||||||
IMAGE im4 = { 800, 200, 0, -10, RGB(0, 100, 0) };
|
|
||||||
|
|
||||||
struct Image im1 = { 100, 200, 10, 0 , RGB(128, 128, 0) };
|
|
||||||
|
|
||||||
IMAGE im5[3] = {
|
|
||||||
{500, 100, 10, 5, RGB(100, 100, 100)},
|
|
||||||
{500, 100, 0, 10, RGB(150, 150, 150)},
|
|
||||||
{500, 100, -10, 5, RGB(200, 200, 200)}
|
|
||||||
};
|
|
||||||
|
|
||||||
#define NUM_IM_A 9
|
|
||||||
|
|
||||||
IMAGE imA[NUM_IM_A] = {
|
|
||||||
{700, 300, 10, 0, RGB(255, 0, 255)},
|
|
||||||
{700, 300, 9, 4, RGB(255, 30, 255)},
|
|
||||||
{700, 300, 7, 7, RGB(255, 60, 255)},
|
|
||||||
{700, 300, 4, 9,RGB(255, 90, 255)},
|
|
||||||
{700, 300, 0, 10, RGB(255, 120, 255)},
|
|
||||||
{700, 300, 4, 9, RGB(255, 150, 255)},
|
|
||||||
{700, 300, 7, 7, RGB(255, 180, 255)},
|
|
||||||
{700, 300, 9, 4, RGB(255, 210, 255)},
|
|
||||||
{700, 300, -10, 0, RGB(255, 240, 255)}
|
|
||||||
};
|
|
||||||
|
|
||||||
void Image5(HDC hdc, int cx, int cy, COLORREF color) {
|
|
||||||
HPEN hPen = CreatePen(PS_SOLID, 2, color);
|
|
||||||
SelectObject(hdc, hPen);
|
|
||||||
|
|
||||||
POINT p[10] = {
|
|
||||||
cx - 40, cy + 20,
|
|
||||||
cx - 30, cy - 10,
|
|
||||||
cx - 20, cy + 10,
|
|
||||||
cx - 10, cy - 20,
|
|
||||||
cx, cy + 10,
|
|
||||||
cx + 10, cy - 20,
|
|
||||||
cx + 20, cy + 10,
|
|
||||||
cx + 30, cy - 10,
|
|
||||||
cx + 40, cy + 20,
|
|
||||||
cx - 40, cy + 20,
|
|
||||||
};
|
|
||||||
|
|
||||||
Polyline(hdc, p, 10);
|
|
||||||
|
|
||||||
DeleteObject(hPen);
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
// ФУНКЦИЯ: 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_LAB12OAIPPROKONOVKIRILL));
|
|
||||||
wcex.hCursor = LoadCursor(nullptr, IDC_ARROW);
|
|
||||||
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
|
|
||||||
wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_LAB12OAIPPROKONOVKIRILL);
|
|
||||||
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 - отправить сообщение о выходе и вернуться
|
|
||||||
//
|
|
||||||
//
|
|
||||||
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...
|
|
||||||
Image0(hdc, im1.x, im1.y, im1.color);
|
|
||||||
Image1(hdc, im2.x, im2.y, im2.color);
|
|
||||||
Image2(hdc, im3.x, im3.y, im3.color);
|
|
||||||
Image3(hdc, im4.x, im4.y, im4.color);
|
|
||||||
|
|
||||||
Image4(hdc, im5[0].x, im5[0].y, im5[0].color);
|
|
||||||
Image4(hdc, im5[1].x, im5[1].y, im5[1].color);
|
|
||||||
Image4(hdc, im5[2].x, im5[2].y, im5[2].color);
|
|
||||||
|
|
||||||
//Со звёздочкой
|
|
||||||
int i = 0;
|
|
||||||
|
|
||||||
while (i < NUM_IM_A) {
|
|
||||||
|
|
||||||
Image5(hdc, imA[i].x, imA[i].y, imA[i].color);
|
|
||||||
|
|
||||||
i += 1;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
EndPaint(hWnd, &ps);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case WM_CREATE:
|
|
||||||
SetTimer(hWnd, 1, 500, 0);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case WM_TIMER:
|
|
||||||
{
|
|
||||||
im1.x += im1.vx;
|
|
||||||
im1.y += im1.vy;
|
|
||||||
|
|
||||||
im2.x += im2.vx;
|
|
||||||
im2.y += im2.vy;
|
|
||||||
|
|
||||||
im3.x += im3.vx;
|
|
||||||
im3.y += im3.vy;
|
|
||||||
|
|
||||||
im4.x += im4.vx;
|
|
||||||
im4.y += im4.vy;
|
|
||||||
|
|
||||||
im5[0].x += im5[0].vx;
|
|
||||||
im5[0].y += im5[0].vy;
|
|
||||||
|
|
||||||
im5[1].x += im5[1].vx;
|
|
||||||
im5[1].y += im5[1].vy;
|
|
||||||
|
|
||||||
im5[2].x += im5[2].vx;
|
|
||||||
im5[2].y += im5[2].vy;
|
|
||||||
|
|
||||||
int i = 0;
|
|
||||||
while (i < NUM_IM_A) {
|
|
||||||
imA[i].x += imA[i].vx;
|
|
||||||
imA[i].y += imA[i].vy;
|
|
||||||
i += 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
InvalidateRect(hWnd, NULL, TRUE);
|
|
||||||
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;
|
|
||||||
}
|
|
@ -1,3 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include "resource.h"
|
|
Binary file not shown.
Before Width: | Height: | Size: 45 KiB |
Binary file not shown.
@ -1,160 +0,0 @@
|
|||||||
<?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>16.0</VCProjectVersion>
|
|
||||||
<Keyword>Win32Proj</Keyword>
|
|
||||||
<ProjectGuid>{25ccd917-e83b-4e45-94ad-6a3f90325a1e}</ProjectGuid>
|
|
||||||
<RootNamespace>Lab12OAIPProkonovKirill</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>v142</PlatformToolset>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</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" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<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="Lab12.OAIP.ProkonovKirill.h" />
|
|
||||||
<ClInclude Include="Resource.h" />
|
|
||||||
<ClInclude Include="targetver.h" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="Lab12.OAIP.ProkonovKirill.cpp" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="Lab12.OAIP.ProkonovKirill.rc" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Image Include="Lab12.OAIP.ProkonovKirill.ico" />
|
|
||||||
<Image Include="small.ico" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
||||||
<ImportGroup Label="ExtensionTargets">
|
|
||||||
</ImportGroup>
|
|
||||||
</Project>
|
|
@ -1,49 +0,0 @@
|
|||||||
<?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="Lab12.OAIP.ProkonovKirill.h">
|
|
||||||
<Filter>Файлы заголовков</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="Lab12.OAIP.ProkonovKirill.cpp">
|
|
||||||
<Filter>Исходные файлы</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="Lab12.OAIP.ProkonovKirill.rc">
|
|
||||||
<Filter>Файлы ресурсов</Filter>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Image Include="small.ico">
|
|
||||||
<Filter>Файлы ресурсов</Filter>
|
|
||||||
</Image>
|
|
||||||
<Image Include="Lab12.OAIP.ProkonovKirill.ico">
|
|
||||||
<Filter>Файлы ресурсов</Filter>
|
|
||||||
</Image>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
@ -1,30 +0,0 @@
|
|||||||
//{{NO_DEPENDENCIES}}
|
|
||||||
// Включаемый файл, созданный в Microsoft Visual C++.
|
|
||||||
// Используется Lab12.OAIP.ProkonovKirill.rc
|
|
||||||
|
|
||||||
#define IDS_APP_TITLE 103
|
|
||||||
|
|
||||||
#define IDR_MAINFRAME 128
|
|
||||||
#define IDD_LAB12OAIPPROKONOVKIRILL_DIALOG 102
|
|
||||||
#define IDD_ABOUTBOX 103
|
|
||||||
#define IDM_ABOUT 104
|
|
||||||
#define IDM_EXIT 105
|
|
||||||
#define IDI_LAB12OAIPPROKONOVKIRILL 107
|
|
||||||
#define IDI_SMALL 108
|
|
||||||
#define IDC_LAB12OAIPPROKONOVKIRILL 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
|
|
@ -1,15 +0,0 @@
|
|||||||
// 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>
|
|
Binary file not shown.
Before Width: | Height: | Size: 45 KiB |
@ -1,6 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
// // При включении SDKDDKVer.h будет задана самая новая из доступных платформ Windows.
|
|
||||||
// Если вы планируете сборку приложения для предыдущей версии платформы Windows, включите WinSDKVer.h и
|
|
||||||
// задайте желаемую платформу в макросе _WIN32_WINNT, прежде чем включать SDKDDKVer.h.
|
|
||||||
#include <SDKDDKVer.h>
|
|
@ -1,150 +0,0 @@
|
|||||||
<?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>16.0</VCProjectVersion>
|
|
||||||
<Keyword>Win32Proj</Keyword>
|
|
||||||
<ProjectGuid>{58950c5f-3432-4f41-8d8b-1856de4da894}</ProjectGuid>
|
|
||||||
<RootNamespace>Project1</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>v142</PlatformToolset>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v142</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" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<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></ItemGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
||||||
<ImportGroup Label="ExtensionTargets">
|
|
||||||
</ImportGroup>
|
|
||||||
</Project>
|
|
@ -1,17 +0,0 @@
|
|||||||
<?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>
|
|
||||||
</Project>
|
|
Loading…
Reference in New Issue
Block a user