Skip to content
Open

Dep #32

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added HW/HW/.vs/HW/v16/.suo
Binary file not shown.
Binary file added HW/HW/.vs/HW/v16/Browse.VC.db
Binary file not shown.
Binary file added HW/HW/.vs/HW/v16/Solution.VC.db
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions HW/HW/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;

public class Class1
{
public Class1()
{
}
}
Binary file added HW/HW/Debug/Task0.exe
Binary file not shown.
Binary file added HW/HW/Debug/Task0.pdb
Binary file not shown.
Binary file added HW/HW/Debug/Task1.exe
Binary file not shown.
Binary file added HW/HW/Debug/Task1.pdb
Binary file not shown.
41 changes: 41 additions & 0 deletions HW/HW/HW.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31624.102
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Task0", "Task0\Task0.vcxproj", "{FC1A4A35-BC97-4E24-A02C-6A4B9843417A}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Task1", "Task1\Task1.vcxproj", "{17317F50-900F-4C03-8107-7693DE7A6E70}"
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
{FC1A4A35-BC97-4E24-A02C-6A4B9843417A}.Debug|x64.ActiveCfg = Debug|x64
{FC1A4A35-BC97-4E24-A02C-6A4B9843417A}.Debug|x64.Build.0 = Debug|x64
{FC1A4A35-BC97-4E24-A02C-6A4B9843417A}.Debug|x86.ActiveCfg = Debug|Win32
{FC1A4A35-BC97-4E24-A02C-6A4B9843417A}.Debug|x86.Build.0 = Debug|Win32
{FC1A4A35-BC97-4E24-A02C-6A4B9843417A}.Release|x64.ActiveCfg = Release|x64
{FC1A4A35-BC97-4E24-A02C-6A4B9843417A}.Release|x64.Build.0 = Release|x64
{FC1A4A35-BC97-4E24-A02C-6A4B9843417A}.Release|x86.ActiveCfg = Release|Win32
{FC1A4A35-BC97-4E24-A02C-6A4B9843417A}.Release|x86.Build.0 = Release|Win32
{17317F50-900F-4C03-8107-7693DE7A6E70}.Debug|x64.ActiveCfg = Debug|x64
{17317F50-900F-4C03-8107-7693DE7A6E70}.Debug|x64.Build.0 = Debug|x64
{17317F50-900F-4C03-8107-7693DE7A6E70}.Debug|x86.ActiveCfg = Debug|Win32
{17317F50-900F-4C03-8107-7693DE7A6E70}.Debug|x86.Build.0 = Debug|Win32
{17317F50-900F-4C03-8107-7693DE7A6E70}.Release|x64.ActiveCfg = Release|x64
{17317F50-900F-4C03-8107-7693DE7A6E70}.Release|x64.Build.0 = Release|x64
{17317F50-900F-4C03-8107-7693DE7A6E70}.Release|x86.ActiveCfg = Release|Win32
{17317F50-900F-4C03-8107-7693DE7A6E70}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6711388D-B0CE-4CC0-947D-177F6DD4C056}
EndGlobalSection
EndGlobal
Binary file added HW/HW/Task0/Debug/Source.obj
Binary file not shown.
11 changes: 11 additions & 0 deletions HW/HW/Task0/Debug/Task0.exe.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<ProjectOutputs>
<ProjectOutput>
<FullPath>C:\Users\Дмитрий\source\repos\HW\Debug\Task0.exe</FullPath>
</ProjectOutput>
</ProjectOutputs>
<ContentFiles />
<SatelliteDlls />
<NonRecipeFileRefs />
</Project>
Binary file added HW/HW/Task0/Debug/Task0.ilk
Binary file not shown.
2 changes: 2 additions & 0 deletions HW/HW/Task0/Debug/Task0.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
 Task2.c
Task0.vcxproj -> C:\Users\Дмитрий\source\repos\HW\Debug\Task0.exe
Binary file added HW/HW/Task0/Debug/Task0.tlog/CL.command.1.tlog
Binary file not shown.
Binary file added HW/HW/Task0/Debug/Task0.tlog/CL.read.1.tlog
Binary file not shown.
Binary file added HW/HW/Task0/Debug/Task0.tlog/CL.write.1.tlog
Binary file not shown.
2 changes: 2 additions & 0 deletions HW/HW/Task0/Debug/Task0.tlog/Task0.lastbuildstate
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.29.30133:TargetPlatformVersion=10.0.19041.0:
Debug|Win32|C:\Users\Дмитрий\source\repos\HW\|
Binary file added HW/HW/Task0/Debug/Task0.tlog/link.command.1.tlog
Binary file not shown.
Binary file added HW/HW/Task0/Debug/Task0.tlog/link.read.1.tlog
Binary file not shown.
Binary file added HW/HW/Task0/Debug/Task0.tlog/link.write.1.tlog
Binary file not shown.
Binary file added HW/HW/Task0/Debug/Task2.obj
Binary file not shown.
Binary file added HW/HW/Task0/Debug/vc142.idb
Binary file not shown.
Binary file added HW/HW/Task0/Debug/vc142.pdb
Binary file not shown.
40 changes: 40 additions & 0 deletions HW/HW/Task0/Source.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#include <math.h>
#include <stdio.h>
#include <locale.h>
int main()
{
setlocale(LC_ALL, "Russian");
float x1, x2, y1, y2, r1, r2;
float d;

printf("������� ������ � ���������� ������� �����(x,y,r)");
scanf_s("%f %f %f", &x1, &y1, &r1);

printf("������� ������ � ���������� ������� �����(x,y,r)");
scanf_s("%f %f %f", &x2, &y2, &r2);

d = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));

if (d == r1 + r2) {
printf("���������� ��������");
}
else if (d < r1 + r2) {
if (d == 0 && r1 == r2) {
printf("���������� ���������");
}
else if (d + r1 < r2 || d + r2 < r1) {
printf("���� ���������� ������ ������");
}
else if (d == r1 - r2 || d == r2 - r1) {
printf("��������� �������");
}
else {
printf("���������� ������������");
}

}
else if (d > r1 + r2) {
printf("���������� ����� �� �������");
}
return 0;
}
148 changes: 148 additions & 0 deletions HW/HW/Task0/Task0.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{fc1a4a35-bc97-4e24-a02c-6a4b9843417a}</ProjectGuid>
<RootNamespace>Task0</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.c" />
<ClCompile Include="Task2.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
25 changes: 25 additions & 0 deletions HW/HW/Task0/Task0.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?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.c">
<Filter>Файлы ресурсов</Filter>
</ClCompile>
<ClCompile Include="Task2.c">
<Filter>Исходные файлы</Filter>
</ClCompile>
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions HW/HW/Task0/Task0.vcxproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
</Project>
Empty file added HW/HW/Task0/Task2.c
Empty file.
Binary file added HW/HW/Task1/Debug/CodeAnalysisResultManifest.txt
Binary file not shown.
Binary file added HW/HW/Task1/Debug/Source.obj
Binary file not shown.
11 changes: 11 additions & 0 deletions HW/HW/Task1/Debug/Task1.exe.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<ProjectOutputs>
<ProjectOutput>
<FullPath>C:\Users\Дмитрий\source\repos\HW\Debug\Task1.exe</FullPath>
</ProjectOutput>
</ProjectOutputs>
<ContentFiles />
<SatelliteDlls />
<NonRecipeFileRefs />
</Project>
Binary file added HW/HW/Task1/Debug/Task1.ilk
Binary file not shown.
2 changes: 2 additions & 0 deletions HW/HW/Task1/Debug/Task1.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
 Source.c
Task1.vcxproj -> C:\Users\Дмитрий\source\repos\HW\Debug\Task1.exe
Binary file added HW/HW/Task1/Debug/Task1.tlog/CL.command.1.tlog
Binary file not shown.
Binary file added HW/HW/Task1/Debug/Task1.tlog/CL.read.1.tlog
Binary file not shown.
Binary file added HW/HW/Task1/Debug/Task1.tlog/CL.write.1.tlog
Binary file not shown.
2 changes: 2 additions & 0 deletions HW/HW/Task1/Debug/Task1.tlog/Task1.lastbuildstate
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.29.30133:TargetPlatformVersion=10.0.19041.0:
Debug|Win32|C:\Users\Дмитрий\source\repos\HW\|
Binary file added HW/HW/Task1/Debug/Task1.tlog/link.command.1.tlog
Binary file not shown.
Binary file added HW/HW/Task1/Debug/Task1.tlog/link.read.1.tlog
Binary file not shown.
Binary file added HW/HW/Task1/Debug/Task1.tlog/link.write.1.tlog
Binary file not shown.
Binary file added HW/HW/Task1/Debug/vc142.idb
Binary file not shown.
Binary file added HW/HW/Task1/Debug/vc142.pdb
Binary file not shown.
43 changes: 43 additions & 0 deletions HW/HW/Task1/Source.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#include <math.h>
#include <stdio.h>
#include <locale.h>
int main()
{
setlocale(LC_ALL, "Russian");

double pdsp = 600; //��������� ���
double pdvp = 800; // ��������� ���
double pder = 1000; // ��������� ������
double h, w, t1 = 0.005, t2 = 0.015, t3 = 0.01, d, V1,V2,V3;
double mas = 0;

printf("������� ������ �����(�� 180 �� 220):\n");
scanf_s("%lf", &h);

printf("������� ������ �����(�� 80 �� 120):\n");
scanf_s("%lf", &w);

printf("������� ������� �����(�� 50 �� 90):\n");
scanf_s("%lf", &d);
if (h < 200) {
h = h / 100;
w = w / 100;
d = d / 100;
V1 = (h * w * t1) ;
V2 =((h * d * t2) * 2) + ((w * d * t2) * 2) + ((d * w * t2) * 4);//� ������� �� ������� ������� �����,� ���� 15 �����������
V3 = (h * w * t3);
mas = (V1 * pdvp) + (V2 * pdsp) + (V3 * pder);
printf("mas=%lf", mas);
}
else if (h >= 200) {
h = h / 100;
w = w / 100;
d = d / 100;
V1 = (h * w * t1) ;
V2 = ((h * d * t2) * 2) + ((w * d * t2) * 2) + ((d * w * t2) * 5);
V3 = (h * w * t3);
mas = (V1 * pdvp) + (V2 * pdsp) + (V3 * pder);
printf("mas=%lf", mas);
}
return 0;
}
Loading