Skip to content
Open
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_Task_0/.vs/Task_0/v16/.suo
Binary file not shown.
Binary file added HW/HW_Task_0/.vs/Task_0/v16/Browse.VC.db
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
31 changes: 31 additions & 0 deletions HW/HW_Task_0/Task_0.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31702.278
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Task_0", "Task_0\Task_0.vcxproj", "{227C4E49-FC1A-433E-B364-1A5D08A52DE2}"
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
{227C4E49-FC1A-433E-B364-1A5D08A52DE2}.Debug|x64.ActiveCfg = Debug|x64
{227C4E49-FC1A-433E-B364-1A5D08A52DE2}.Debug|x64.Build.0 = Debug|x64
{227C4E49-FC1A-433E-B364-1A5D08A52DE2}.Debug|x86.ActiveCfg = Debug|Win32
{227C4E49-FC1A-433E-B364-1A5D08A52DE2}.Debug|x86.Build.0 = Debug|Win32
{227C4E49-FC1A-433E-B364-1A5D08A52DE2}.Release|x64.ActiveCfg = Release|x64
{227C4E49-FC1A-433E-B364-1A5D08A52DE2}.Release|x64.Build.0 = Release|x64
{227C4E49-FC1A-433E-B364-1A5D08A52DE2}.Release|x86.ActiveCfg = Release|Win32
{227C4E49-FC1A-433E-B364-1A5D08A52DE2}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {DF012A1A-230A-4E50-B7DA-2F9FF40BA086}
EndGlobalSection
EndGlobal
Binary file added HW/HW_Task_0/Task_0/Debug/Source.obj
Binary file not shown.
11 changes: 11 additions & 0 deletions HW/HW_Task_0/Task_0/Debug/Task_0.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\User\Desktop\I&amp;P\Informatics-and-Programming\HW\Task_0\Debug\Task_0.exe</FullPath>
</ProjectOutput>
</ProjectOutputs>
<ContentFiles />
<SatelliteDlls />
<NonRecipeFileRefs />
</Project>
Binary file added HW/HW_Task_0/Task_0/Debug/Task_0.ilk
Binary file not shown.
2 changes: 2 additions & 0 deletions HW/HW_Task_0/Task_0/Debug/Task_0.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
 Source.cpp
c1xx : fatal error C1083: Не удается открыть файл источник: Source.cpp: No such file or directory,
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": false
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions HW/HW_Task_0/Task_0/Debug/Task_0.tlog/Task_0.lastbuildstate
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.29.30133:VCServicingVersionATL=14.29.30136:VCServicingVersionCrtHeaders=14.29.30136:TargetPlatformVersion=10.0.19041.0:
Debug|Win32|C:\Users\User\Desktop\I&P\Informatics-and-Programming\HW\HW_Task_0\|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file added HW/HW_Task_0/Task_0/Debug/vc142.idb
Binary file not shown.
Binary file added HW/HW_Task_0/Task_0/Debug/vc142.pdb
Binary file not shown.
38 changes: 38 additions & 0 deletions HW/HW_Task_0/Task_0/Main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#include<stdio.h>;
#include<locale.h>;
#include<math.h>;

int main()
{
setlocale(LC_ALL, "ru");
float x1, y1, r1;
float x2, y2, r2;
float d;
printf("������� ���������� x1,y1,r1 :");
scanf_s("%f %f %f", &x1, &y1, &r1);
printf("������� ���������� x2, y2, r2 :");
scanf_s("%f %f %f", &x2, &y2, &r2);
d = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
if (d > r1 + r2)
{
printf("���������� �� ������������");
}
else if (d == r1 + r2)
{
printf("������� ������� ���� �����������");
}
else if (d == r1 - r2)
{
printf("���������� ������� ���� �����������");
}
else if (d < r1 - r2)
{
printf("���� �� ����������� ����� ������ ������");
}
else if (r1 - r2 < d < r1 + r2)
{
printf("���������� ������������ � ���� ������");
}
return 0;
}

36 changes: 36 additions & 0 deletions HW/HW_Task_0/Task_0/Source1.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#include<stdio.h>;
#include<locale.h>;
#include<math.h>;

int main()
{
setlocale(LC_ALL, "ru");
float d, x1, y1, r1, x2, y2, r2;
printf("������� ���������� x1,y1,r1 :");
scanf_s("%f %f %f", &x1, &y1, &r1);
printf("������� ���������� x2, y2, r2 :");
scanf_s("%f %f %f", &x2, &y2, &r2);
d = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
if (d > r1 + r2)
{
printf("���������� �� ������������");
}
else if (d == r1 + r2)
{
printf("������� ������� ���� �����������");
}
else if (d == r1 - r2)
{
printf("���������� ������� ���� �����������");
}
else if (d < r1 - r2)
{
printf("���� �� ����������� ����� ������ ������");
}
else if (r1 - r2 < d < r1 + r2)
{
printf("���������� ������������ � ���� ������");
}
return 0;
}

148 changes: 148 additions & 0 deletions HW/HW_Task_0/Task_0/Task_0.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>{227c4e49-fc1a-433e-b364-1a5d08a52de2}</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.cpp" />
<ClCompile Include="Source1.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
25 changes: 25 additions & 0 deletions HW/HW_Task_0/Task_0/Task_0.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.cpp">
<Filter>Файлы ресурсов</Filter>
</ClCompile>
<ClCompile Include="Source1.c">
<Filter>Исходные файлы</Filter>
</ClCompile>
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions HW/HW_Task_0/Task_0/Task_0.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>
Binary file added HW/HW_Task_1/.vs/HW_Task_1/v16/.suo
Binary file not shown.
Binary file added HW/HW_Task_1/.vs/HW_Task_1/v16/Browse.VC.db
Binary file not shown.
Binary file not shown.
Binary file added HW/HW_Task_1/Debug/HW_Task_1.exe
Binary file not shown.
Binary file added HW/HW_Task_1/Debug/HW_Task_1.pdb
Binary file not shown.
31 changes: 31 additions & 0 deletions HW/HW_Task_1/HW_Task_1.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31911.196
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HW_Task_1", "HW_Task_1\HW_Task_1.vcxproj", "{9A00DA8E-0AAD-424D-9B83-185B4C9701B2}"
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
{9A00DA8E-0AAD-424D-9B83-185B4C9701B2}.Debug|x64.ActiveCfg = Debug|x64
{9A00DA8E-0AAD-424D-9B83-185B4C9701B2}.Debug|x64.Build.0 = Debug|x64
{9A00DA8E-0AAD-424D-9B83-185B4C9701B2}.Debug|x86.ActiveCfg = Debug|Win32
{9A00DA8E-0AAD-424D-9B83-185B4C9701B2}.Debug|x86.Build.0 = Debug|Win32
{9A00DA8E-0AAD-424D-9B83-185B4C9701B2}.Release|x64.ActiveCfg = Release|x64
{9A00DA8E-0AAD-424D-9B83-185B4C9701B2}.Release|x64.Build.0 = Release|x64
{9A00DA8E-0AAD-424D-9B83-185B4C9701B2}.Release|x86.ActiveCfg = Release|Win32
{9A00DA8E-0AAD-424D-9B83-185B4C9701B2}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C026B83E-7150-4F7F-8039-E85447D34988}
EndGlobalSection
EndGlobal
11 changes: 11 additions & 0 deletions HW/HW_Task_1/HW_Task_1/Debug/HW_Task_1.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\User\Desktop\I&amp;P\Informatics-and-Programming\HW\HW_Task_1\Debug\HW_Task_1.exe</FullPath>
</ProjectOutput>
</ProjectOutputs>
<ContentFiles />
<SatelliteDlls />
<NonRecipeFileRefs />
</Project>
Binary file added HW/HW_Task_1/HW_Task_1/Debug/HW_Task_1.ilk
Binary file not shown.
5 changes: 5 additions & 0 deletions HW/HW_Task_1/HW_Task_1/Debug/HW_Task_1.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
 Source.c
C:\Users\User\Desktop\I&P\Informatics-and-Programming\HW\HW_Task_1\HW_Task_1\Source.c(26,31): warning C4244: =: преобразование "int" в "float", возможна потеря данных
C:\Users\User\Desktop\I&P\Informatics-and-Programming\HW\HW_Task_1\HW_Task_1\Source.c(39,102): warning C4244: =: преобразование "double" в "float", возможна потеря данных
C:\Users\User\Desktop\I&P\Informatics-and-Programming\HW\HW_Task_1\HW_Task_1\Source.c(43,2): warning C4098: main: функция типа "void", возвращающая значение
HW_Task_1.vcxproj -> C:\Users\User\Desktop\I&P\Informatics-and-Programming\HW\HW_Task_1\Debug\HW_Task_1.exe
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.29.30133:VCServicingVersionATL=14.29.30136:VCServicingVersionCrtHeaders=14.29.30136:TargetPlatformVersion=10.0.19041.0:
Debug|Win32|C:\Users\User\Desktop\I&P\Informatics-and-Programming\HW\HW_Task_1\|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added HW/HW_Task_1/HW_Task_1/Debug/Source.obj
Binary file not shown.
Binary file added HW/HW_Task_1/HW_Task_1/Debug/vc142.idb
Binary file not shown.
Binary file added HW/HW_Task_1/HW_Task_1/Debug/vc142.pdb
Binary file not shown.
Loading