From 355026dfedc43bd3c61bb28a0bd6b280b7a6d0ab Mon Sep 17 00:00:00 2001 From: Mr-Sulfate Date: Wed, 13 Nov 2024 12:26:11 +0400 Subject: [PATCH] commit "123" --- .gitignore | 2 +- work2/work2.sln | 31 +++++++ work2/work2/Source.cpp | 40 +++++++++ work2/work2/work2.vcxproj | 135 ++++++++++++++++++++++++++++++ work2/work2/work2.vcxproj.filters | 22 +++++ 5 files changed, 229 insertions(+), 1 deletion(-) create mode 100644 work2/work2.sln create mode 100644 work2/work2/Source.cpp create mode 100644 work2/work2/work2.vcxproj create mode 100644 work2/work2/work2.vcxproj.filters diff --git a/.gitignore b/.gitignore index ca1c7a3..24e6c45 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,7 @@ # User-specific files (MonoDevelop/Xamarin Studio) *.userprefs - +#123 # Mono auto generated files mono_crash.* diff --git a/work2/work2.sln b/work2/work2.sln new file mode 100644 index 0000000..31531f6 --- /dev/null +++ b/work2/work2.sln @@ -0,0 +1,31 @@ + +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}") = "work2", "work2\work2.vcxproj", "{439EE5A7-741A-4DF8-9930-5C81C1B403B4}" +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 + {439EE5A7-741A-4DF8-9930-5C81C1B403B4}.Debug|x64.ActiveCfg = Debug|x64 + {439EE5A7-741A-4DF8-9930-5C81C1B403B4}.Debug|x64.Build.0 = Debug|x64 + {439EE5A7-741A-4DF8-9930-5C81C1B403B4}.Debug|x86.ActiveCfg = Debug|Win32 + {439EE5A7-741A-4DF8-9930-5C81C1B403B4}.Debug|x86.Build.0 = Debug|Win32 + {439EE5A7-741A-4DF8-9930-5C81C1B403B4}.Release|x64.ActiveCfg = Release|x64 + {439EE5A7-741A-4DF8-9930-5C81C1B403B4}.Release|x64.Build.0 = Release|x64 + {439EE5A7-741A-4DF8-9930-5C81C1B403B4}.Release|x86.ActiveCfg = Release|Win32 + {439EE5A7-741A-4DF8-9930-5C81C1B403B4}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {0757599C-9FC0-44F6-B82C-5654BBEFBD37} + EndGlobalSection +EndGlobal diff --git a/work2/work2/Source.cpp b/work2/work2/Source.cpp new file mode 100644 index 0000000..e8149f5 --- /dev/null +++ b/work2/work2/Source.cpp @@ -0,0 +1,40 @@ +#include +#include +#include + +void main() +{ + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + int h, i1, i2, i3; + + printf(" : "); + scanf_s("%d", &h); + + i1 = 1; + i2 = h - 1; + + + do { + i3 = i2; + do { + printf(" "); + + } while (i3 > 0); + i3 = i1; + do { + printf("#"); + + } while (i3 > 0); + i3 = i2; + do { + printf(" "); + + } while (i3 > 0); + + i1 += 1; + i2 -= 1; + h -= 1; + + } while (0 < h); +} \ No newline at end of file diff --git a/work2/work2/work2.vcxproj b/work2/work2/work2.vcxproj new file mode 100644 index 0000000..e2b52c4 --- /dev/null +++ b/work2/work2/work2.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + + + + 17.0 + Win32Proj + {439ee5a7-741a-4df8-9930-5c81c1b403b4} + work2 + 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/work2/work2/work2.vcxproj.filters b/work2/work2/work2.vcxproj.filters new file mode 100644 index 0000000..ef66db6 --- /dev/null +++ b/work2/work2/work2.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