From a1ac747f117aafed9cc0e0319ec91a9cac0661cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=A2=D1=8E=D1=80=D0=B8?= =?UTF-8?q?=D0=BD?= Date: Wed, 13 Nov 2024 22:40:07 +0400 Subject: [PATCH] 1 --- .../задача 3/задача 3.c | 21 +++ .../задача 3/задача 3.vcxproj | 135 ++++++++++++++++++ .../задача 3.vcxproj.filters | 22 +++ лаба 2/лаба 2/лаба 2.sln | 51 +++++++ .../лаба 2/лаба 2/задание 1.c | 14 ++ .../лаба 2/лаба 2/лаба 2.vcxproj | 135 ++++++++++++++++++ .../лаба 2/лаба 2.vcxproj.filters | 22 +++ .../решение 2/решение 2.c | 15 ++ .../решение 2/решение 2.vcxproj | 135 ++++++++++++++++++ .../решение 2.vcxproj.filters | 22 +++ 10 files changed, 572 insertions(+) create mode 100644 лаба 2/лаба 2/задача 3/задача 3.c create mode 100644 лаба 2/лаба 2/задача 3/задача 3.vcxproj create mode 100644 лаба 2/лаба 2/задача 3/задача 3.vcxproj.filters create mode 100644 лаба 2/лаба 2/лаба 2.sln create mode 100644 лаба 2/лаба 2/лаба 2/задание 1.c create mode 100644 лаба 2/лаба 2/лаба 2/лаба 2.vcxproj create mode 100644 лаба 2/лаба 2/лаба 2/лаба 2.vcxproj.filters create mode 100644 лаба 2/лаба 2/решение 2/решение 2.c create mode 100644 лаба 2/лаба 2/решение 2/решение 2.vcxproj create mode 100644 лаба 2/лаба 2/решение 2/решение 2.vcxproj.filters diff --git a/лаба 2/лаба 2/задача 3/задача 3.c b/лаба 2/лаба 2/задача 3/задача 3.c new file mode 100644 index 0000000..ec0d99a --- /dev/null +++ b/лаба 2/лаба 2/задача 3/задача 3.c @@ -0,0 +1,21 @@ +#include +#include +#include +void main() { + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + + float m, price; + int rubli; + printf(" : "); + scanf_s("%f", &m); + + printf("\n : "); + scanf_s("%d", &rubli); + price = m * rubli; + + + printf("\n %10.3f, %i 1 , %10.1f \n", m, rubli, price); + +} +////111 \ No newline at end of file diff --git a/лаба 2/лаба 2/задача 3/задача 3.vcxproj b/лаба 2/лаба 2/задача 3/задача 3.vcxproj new file mode 100644 index 0000000..3c98a77 --- /dev/null +++ b/лаба 2/лаба 2/задача 3/задача 3.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {ecc55d12-10e4-4083-9b80-2a2bf4b2ec68} + задача3 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/лаба 2/лаба 2/задача 3/задача 3.vcxproj.filters b/лаба 2/лаба 2/задача 3/задача 3.vcxproj.filters new file mode 100644 index 0000000..2fa0e7e --- /dev/null +++ b/лаба 2/лаба 2/задача 3/задача 3.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Исходные файлы + + + \ No newline at end of file diff --git a/лаба 2/лаба 2/лаба 2.sln b/лаба 2/лаба 2/лаба 2.sln new file mode 100644 index 0000000..427273d --- /dev/null +++ b/лаба 2/лаба 2/лаба 2.sln @@ -0,0 +1,51 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "лаба 2", "лаба 2\лаба 2.vcxproj", "{A55DCEA0-1951-4E63-8696-0672F3E2C907}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "решение 2", "решение 2\решение 2.vcxproj", "{E53549B8-68D2-42F8-A97B-C96E597E76F0}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "задача 3", "задача 3\задача 3.vcxproj", "{ECC55D12-10E4-4083-9B80-2A2BF4B2EC68}" +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 + {A55DCEA0-1951-4E63-8696-0672F3E2C907}.Debug|x64.ActiveCfg = Debug|x64 + {A55DCEA0-1951-4E63-8696-0672F3E2C907}.Debug|x64.Build.0 = Debug|x64 + {A55DCEA0-1951-4E63-8696-0672F3E2C907}.Debug|x86.ActiveCfg = Debug|Win32 + {A55DCEA0-1951-4E63-8696-0672F3E2C907}.Debug|x86.Build.0 = Debug|Win32 + {A55DCEA0-1951-4E63-8696-0672F3E2C907}.Release|x64.ActiveCfg = Release|x64 + {A55DCEA0-1951-4E63-8696-0672F3E2C907}.Release|x64.Build.0 = Release|x64 + {A55DCEA0-1951-4E63-8696-0672F3E2C907}.Release|x86.ActiveCfg = Release|Win32 + {A55DCEA0-1951-4E63-8696-0672F3E2C907}.Release|x86.Build.0 = Release|Win32 + {E53549B8-68D2-42F8-A97B-C96E597E76F0}.Debug|x64.ActiveCfg = Debug|x64 + {E53549B8-68D2-42F8-A97B-C96E597E76F0}.Debug|x64.Build.0 = Debug|x64 + {E53549B8-68D2-42F8-A97B-C96E597E76F0}.Debug|x86.ActiveCfg = Debug|Win32 + {E53549B8-68D2-42F8-A97B-C96E597E76F0}.Debug|x86.Build.0 = Debug|Win32 + {E53549B8-68D2-42F8-A97B-C96E597E76F0}.Release|x64.ActiveCfg = Release|x64 + {E53549B8-68D2-42F8-A97B-C96E597E76F0}.Release|x64.Build.0 = Release|x64 + {E53549B8-68D2-42F8-A97B-C96E597E76F0}.Release|x86.ActiveCfg = Release|Win32 + {E53549B8-68D2-42F8-A97B-C96E597E76F0}.Release|x86.Build.0 = Release|Win32 + {ECC55D12-10E4-4083-9B80-2A2BF4B2EC68}.Debug|x64.ActiveCfg = Debug|x64 + {ECC55D12-10E4-4083-9B80-2A2BF4B2EC68}.Debug|x64.Build.0 = Debug|x64 + {ECC55D12-10E4-4083-9B80-2A2BF4B2EC68}.Debug|x86.ActiveCfg = Debug|Win32 + {ECC55D12-10E4-4083-9B80-2A2BF4B2EC68}.Debug|x86.Build.0 = Debug|Win32 + {ECC55D12-10E4-4083-9B80-2A2BF4B2EC68}.Release|x64.ActiveCfg = Release|x64 + {ECC55D12-10E4-4083-9B80-2A2BF4B2EC68}.Release|x64.Build.0 = Release|x64 + {ECC55D12-10E4-4083-9B80-2A2BF4B2EC68}.Release|x86.ActiveCfg = Release|Win32 + {ECC55D12-10E4-4083-9B80-2A2BF4B2EC68}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {64C02943-A915-481B-B101-4AEDEC67492E} + EndGlobalSection +EndGlobal diff --git a/лаба 2/лаба 2/лаба 2/задание 1.c b/лаба 2/лаба 2/лаба 2/задание 1.c new file mode 100644 index 0000000..c51bd51 --- /dev/null +++ b/лаба 2/лаба 2/лаба 2/задание 1.c @@ -0,0 +1,14 @@ +#include +#include +#include +void main() { + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + + float h, g, t; + h = 12; + g = 9.8; + t = sqrt(2 * h / g); + printf("\n %f \n", h); + printf(" %f \n", t); +} \ No newline at end of file diff --git a/лаба 2/лаба 2/лаба 2/лаба 2.vcxproj b/лаба 2/лаба 2/лаба 2/лаба 2.vcxproj new file mode 100644 index 0000000..170167e --- /dev/null +++ b/лаба 2/лаба 2/лаба 2/лаба 2.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {a55dcea0-1951-4e63-8696-0672f3e2c907} + лаба2 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/лаба 2/лаба 2/лаба 2/лаба 2.vcxproj.filters b/лаба 2/лаба 2/лаба 2/лаба 2.vcxproj.filters new file mode 100644 index 0000000..5ede568 --- /dev/null +++ b/лаба 2/лаба 2/лаба 2/лаба 2.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Исходные файлы + + + \ No newline at end of file diff --git a/лаба 2/лаба 2/решение 2/решение 2.c b/лаба 2/лаба 2/решение 2/решение 2.c new file mode 100644 index 0000000..2f2c9ff --- /dev/null +++ b/лаба 2/лаба 2/решение 2/решение 2.c @@ -0,0 +1,15 @@ +#include +#include +#include +void main() { + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + + float h, g, t; + printf(" : "); + scanf_s("%f", &h); + g = 9.8; + t = sqrt(2 * h / g); + printf("\n %f \n", h); + printf(" %f \n", t); +} \ No newline at end of file diff --git a/лаба 2/лаба 2/решение 2/решение 2.vcxproj b/лаба 2/лаба 2/решение 2/решение 2.vcxproj new file mode 100644 index 0000000..bce483c --- /dev/null +++ b/лаба 2/лаба 2/решение 2/решение 2.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {e53549b8-68d2-42f8-a97b-c96e597e76f0} + решение2 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/лаба 2/лаба 2/решение 2/решение 2.vcxproj.filters b/лаба 2/лаба 2/решение 2/решение 2.vcxproj.filters new file mode 100644 index 0000000..3b75772 --- /dev/null +++ b/лаба 2/лаба 2/решение 2/решение 2.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Исходные файлы + + + \ No newline at end of file