diff --git a/lab1/diagram.png b/lab1/diagram.png new file mode 100644 index 0000000..d1ed9bf Binary files /dev/null and b/lab1/diagram.png differ diff --git a/lab1/lab1.sln b/lab1/lab1.sln new file mode 100644 index 0000000..76bb92a --- /dev/null +++ b/lab1/lab1.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}") = "lab1", "lab1\lab1.vcxproj", "{DA39C008-B93D-44F0-8A3D-F658DFC530B9}" +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 + {DA39C008-B93D-44F0-8A3D-F658DFC530B9}.Debug|x64.ActiveCfg = Debug|x64 + {DA39C008-B93D-44F0-8A3D-F658DFC530B9}.Debug|x64.Build.0 = Debug|x64 + {DA39C008-B93D-44F0-8A3D-F658DFC530B9}.Debug|x86.ActiveCfg = Debug|Win32 + {DA39C008-B93D-44F0-8A3D-F658DFC530B9}.Debug|x86.Build.0 = Debug|Win32 + {DA39C008-B93D-44F0-8A3D-F658DFC530B9}.Release|x64.ActiveCfg = Release|x64 + {DA39C008-B93D-44F0-8A3D-F658DFC530B9}.Release|x64.Build.0 = Release|x64 + {DA39C008-B93D-44F0-8A3D-F658DFC530B9}.Release|x86.ActiveCfg = Release|Win32 + {DA39C008-B93D-44F0-8A3D-F658DFC530B9}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {450B6B2F-D003-49CA-951E-B5873A662743} + EndGlobalSection +EndGlobal diff --git a/lab1/lab1/lab1.vcxproj b/lab1/lab1/lab1.vcxproj new file mode 100644 index 0000000..1394375 --- /dev/null +++ b/lab1/lab1/lab1.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {da39c008-b93d-44f0-8a3d-f658dfc530b9} + lab1 + 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/lab1/lab1/lab1.vcxproj.filters b/lab1/lab1/lab1.vcxproj.filters new file mode 100644 index 0000000..669bc4e --- /dev/null +++ b/lab1/lab1/lab1.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/lab1/lab1/main.c b/lab1/lab1/main.c new file mode 100644 index 0000000..4ae725b --- /dev/null +++ b/lab1/lab1/main.c @@ -0,0 +1,44 @@ +#include + +void drawShip() { + printf(" ____\n"); + printf(" ---|\n"); + printf(" \\/ /| \\/\n"); + printf(" / |\\\n"); + printf(" / | \\ \\/\n"); + printf(" / || \\\n"); + printf(" / | | \\\n"); + printf(" / | | \\\n"); + printf(" / | | \\\n"); + printf(" / || \\\n"); + printf(" / / \\\n"); + printf(" /________/ \\\n"); + printf(" ________/__________--/\n"); + printf(" ~~~ \\___________________/\n"); + printf(" ~~~~~~~~~~ ~~~~~~~~\n"); + printf("~~~~~~~~~~~~~ ~~~~~~~~~\n"); + printf(" ~~~~~~~~~"); +} + +int main() { + drawShip(); + return 0; +} + +// ____ +// ---| +// \/ /| \/ +// / |\ +// / | \ \/ +// / || \ +// / | | \ +// / | | \ +// / | | \ +// / || \ +// / / \ +// /________/ \ +// ________/__________--/ +// ~~~ \___________________/ +// ~~~~~~~~~~ ~~~~~~~~ +//~~~~~~~~~~~~~ ~~~~~~~~~ +// ~~~~~~~~~ \ No newline at end of file