commit 1306978ef2a905a115ec85c9405c32c4848d8ba5 Author: tixon1501 Date: Sat Dec 7 20:26:26 2024 +0300 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1d6fc68 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +*.tmp +*.log +*.ipch +*.cfg +*.db +*.vsidx +*.ilik +*.pdb \ No newline at end of file diff --git a/1/.vs/1/v17/.wsuo b/1/.vs/1/v17/.wsuo new file mode 100644 index 0000000..1dbc4f2 Binary files /dev/null and b/1/.vs/1/v17/.wsuo differ diff --git a/1/.vs/ProjectSettings.json b/1/.vs/ProjectSettings.json new file mode 100644 index 0000000..4e72f3b --- /dev/null +++ b/1/.vs/ProjectSettings.json @@ -0,0 +1,3 @@ +{ + "CurrentProjectSetting": "Нет конфигураций" +} \ No newline at end of file diff --git a/1/.vs/VSWorkspaceState.json b/1/.vs/VSWorkspaceState.json new file mode 100644 index 0000000..a46ca36 --- /dev/null +++ b/1/.vs/VSWorkspaceState.json @@ -0,0 +1,9 @@ +{ + "ExpandedNodes": [ + "", + "\\1", + "\\1\\1" + ], + "SelectedNode": "\\1\\1\\1.cpp", + "PreviewInSolutionExplorer": false +} \ No newline at end of file diff --git a/1/.vs/slnx.sqlite b/1/.vs/slnx.sqlite new file mode 100644 index 0000000..ba94433 Binary files /dev/null and b/1/.vs/slnx.sqlite differ diff --git a/1/1/.vs/1/v17/.suo b/1/1/.vs/1/v17/.suo new file mode 100644 index 0000000..63e0432 Binary files /dev/null and b/1/1/.vs/1/v17/.suo differ diff --git a/1/1/1.sln b/1/1/1.sln new file mode 100644 index 0000000..50d62e5 --- /dev/null +++ b/1/1/1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34316.72 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "1", "1\1.vcxproj", "{41EE0FFE-2F91-4A19-9564-A19A8BE7CFA6}" +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 + {41EE0FFE-2F91-4A19-9564-A19A8BE7CFA6}.Debug|x64.ActiveCfg = Debug|x64 + {41EE0FFE-2F91-4A19-9564-A19A8BE7CFA6}.Debug|x64.Build.0 = Debug|x64 + {41EE0FFE-2F91-4A19-9564-A19A8BE7CFA6}.Debug|x86.ActiveCfg = Debug|Win32 + {41EE0FFE-2F91-4A19-9564-A19A8BE7CFA6}.Debug|x86.Build.0 = Debug|Win32 + {41EE0FFE-2F91-4A19-9564-A19A8BE7CFA6}.Release|x64.ActiveCfg = Release|x64 + {41EE0FFE-2F91-4A19-9564-A19A8BE7CFA6}.Release|x64.Build.0 = Release|x64 + {41EE0FFE-2F91-4A19-9564-A19A8BE7CFA6}.Release|x86.ActiveCfg = Release|Win32 + {41EE0FFE-2F91-4A19-9564-A19A8BE7CFA6}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6166612C-F3AD-47D5-B946-DC204005CDCE} + EndGlobalSection +EndGlobal diff --git a/1/1/1/1.cpp b/1/1/1/1.cpp new file mode 100644 index 0000000..478b0af --- /dev/null +++ b/1/1/1/1.cpp @@ -0,0 +1,45 @@ +#include +#include +#include + +// Функция печати одного байта в шестнадцатеричном формате +void print_in_hex(uint8_t byte) { + std::cout << std::hex << std::setw(2) << std::setfill('0') << static_cast(byte); +} + +// Функция печати блока данных в шестнадцатеричном формате +void print_in_hex(const void* data, size_t size) { + const uint8_t* byte_data = reinterpret_cast(data); + for (size_t i = 0; i < size; ++i) { + print_in_hex(byte_data[i]); + std::cout << " "; + if ((i + 1) % 16 == 0) std::cout << "\n"; + } + std::cout << std::dec << "\n"; +} + +// Функция печати одного байта в двоичном формате +void print_in_binary(uint8_t byte) { + std::cout << std::bitset<8>(byte); +} + +// Функция печати блока данных в двоичном формате +void print_in_binary(const void* data, size_t size) { + const uint8_t* byte_data = reinterpret_cast(data); + for (size_t i = 0; i < size; ++i) { + print_in_binary(byte_data[i]); + std::cout << " "; + if ((i + 1) % 4 == 0) std::cout << "\n"; + } + std::cout << "\n"; +} + +int main() { + // Пример + uint8_t example_data[] = { 0xAD, 0xAC, 0xEF, 0x22, 0x84, 0x68, 0x75, 0x95 }; + std::cout << "Hex Representation:\n"; + print_in_hex(example_data, sizeof(example_data)); + std::cout << "Binary Representation:\n"; + print_in_binary(example_data, sizeof(example_data)); + return 0; +} diff --git a/1/1/1/1.vcxproj b/1/1/1/1.vcxproj new file mode 100644 index 0000000..786eed9 --- /dev/null +++ b/1/1/1/1.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {41ee0ffe-2f91-4a19-9564-a19a8be7cfa6} + My1 + 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/1/1/1/1.vcxproj.filters b/1/1/1/1.vcxproj.filters new file mode 100644 index 0000000..5666370 --- /dev/null +++ b/1/1/1/1.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/1/1/1/1.vcxproj.user b/1/1/1/1.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/1/1/1/1.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/1/1/1/x64/Debug/1.exe.recipe b/1/1/1/x64/Debug/1.exe.recipe new file mode 100644 index 0000000..f0cba84 --- /dev/null +++ b/1/1/1/x64/Debug/1.exe.recipe @@ -0,0 +1,11 @@ + + + + + C:\Users\tikho\Desktop\Учёба\Бакалавриат\2 курс\Разработка ПО СУ\lab03\1\1\x64\Debug\1.exe + + + + + + \ No newline at end of file diff --git a/1/1/1/x64/Debug/1.ilk b/1/1/1/x64/Debug/1.ilk new file mode 100644 index 0000000..f0d572b Binary files /dev/null and b/1/1/1/x64/Debug/1.ilk differ diff --git a/1/1/1/x64/Debug/1.obj b/1/1/1/x64/Debug/1.obj new file mode 100644 index 0000000..2cf5dd0 Binary files /dev/null and b/1/1/1/x64/Debug/1.obj differ diff --git a/1/1/1/x64/Debug/1.tlog/1.lastbuildstate b/1/1/1/x64/Debug/1.tlog/1.lastbuildstate new file mode 100644 index 0000000..9078401 --- /dev/null +++ b/1/1/1/x64/Debug/1.tlog/1.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: +Debug|x64|C:\Users\tikho\Desktop\Учёба\Бакалавриат\2 курс\Разработка ПО СУ\lab03\1\1\| diff --git a/1/1/1/x64/Debug/1.tlog/CL.command.1.tlog b/1/1/1/x64/Debug/1.tlog/CL.command.1.tlog new file mode 100644 index 0000000..aa6ea83 Binary files /dev/null and b/1/1/1/x64/Debug/1.tlog/CL.command.1.tlog differ diff --git a/1/1/1/x64/Debug/1.tlog/CL.read.1.tlog b/1/1/1/x64/Debug/1.tlog/CL.read.1.tlog new file mode 100644 index 0000000..45e9bba Binary files /dev/null and b/1/1/1/x64/Debug/1.tlog/CL.read.1.tlog differ diff --git a/1/1/1/x64/Debug/1.tlog/CL.write.1.tlog b/1/1/1/x64/Debug/1.tlog/CL.write.1.tlog new file mode 100644 index 0000000..8327def Binary files /dev/null and b/1/1/1/x64/Debug/1.tlog/CL.write.1.tlog differ diff --git a/1/1/1/x64/Debug/1.tlog/Cl.items.tlog b/1/1/1/x64/Debug/1.tlog/Cl.items.tlog new file mode 100644 index 0000000..d1af590 --- /dev/null +++ b/1/1/1/x64/Debug/1.tlog/Cl.items.tlog @@ -0,0 +1 @@ +C:\Users\tikho\Desktop\Учёба\Бакалавриат\2 курс\Разработка ПО СУ\lab03\1\1\1\1.cpp;C:\Users\tikho\Desktop\Учёба\Бакалавриат\2 курс\Разработка ПО СУ\lab03\1\1\1\x64\Debug\1.obj diff --git a/1/1/1/x64/Debug/1.tlog/link.command.1.tlog b/1/1/1/x64/Debug/1.tlog/link.command.1.tlog new file mode 100644 index 0000000..2332d7f Binary files /dev/null and b/1/1/1/x64/Debug/1.tlog/link.command.1.tlog differ diff --git a/1/1/1/x64/Debug/1.tlog/link.read.1.tlog b/1/1/1/x64/Debug/1.tlog/link.read.1.tlog new file mode 100644 index 0000000..89a5734 Binary files /dev/null and b/1/1/1/x64/Debug/1.tlog/link.read.1.tlog differ diff --git a/1/1/1/x64/Debug/1.tlog/link.write.1.tlog b/1/1/1/x64/Debug/1.tlog/link.write.1.tlog new file mode 100644 index 0000000..7fa7b16 Binary files /dev/null and b/1/1/1/x64/Debug/1.tlog/link.write.1.tlog differ diff --git a/1/1/1/x64/Debug/vc143.idb b/1/1/1/x64/Debug/vc143.idb new file mode 100644 index 0000000..041bb81 Binary files /dev/null and b/1/1/1/x64/Debug/vc143.idb differ diff --git a/1/1/x64/Debug/1.exe b/1/1/x64/Debug/1.exe new file mode 100644 index 0000000..c14d991 Binary files /dev/null and b/1/1/x64/Debug/1.exe differ diff --git a/2/2/.vs/2/v17/.suo b/2/2/.vs/2/v17/.suo new file mode 100644 index 0000000..94e8bc6 Binary files /dev/null and b/2/2/.vs/2/v17/.suo differ diff --git a/2/2/2.sln b/2/2/2.sln new file mode 100644 index 0000000..57d4bd4 --- /dev/null +++ b/2/2/2.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34316.72 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2", "2\2.vcxproj", "{B628E85E-63B4-48D1-BC31-F034B3D6F827}" +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 + {B628E85E-63B4-48D1-BC31-F034B3D6F827}.Debug|x64.ActiveCfg = Debug|x64 + {B628E85E-63B4-48D1-BC31-F034B3D6F827}.Debug|x64.Build.0 = Debug|x64 + {B628E85E-63B4-48D1-BC31-F034B3D6F827}.Debug|x86.ActiveCfg = Debug|Win32 + {B628E85E-63B4-48D1-BC31-F034B3D6F827}.Debug|x86.Build.0 = Debug|Win32 + {B628E85E-63B4-48D1-BC31-F034B3D6F827}.Release|x64.ActiveCfg = Release|x64 + {B628E85E-63B4-48D1-BC31-F034B3D6F827}.Release|x64.Build.0 = Release|x64 + {B628E85E-63B4-48D1-BC31-F034B3D6F827}.Release|x86.ActiveCfg = Release|Win32 + {B628E85E-63B4-48D1-BC31-F034B3D6F827}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {7D5FBC2B-BD9D-4C14-9B97-9BBCB56E086F} + EndGlobalSection +EndGlobal diff --git a/2/2/2/2.cpp b/2/2/2/2.cpp new file mode 100644 index 0000000..365f148 --- /dev/null +++ b/2/2/2/2.cpp @@ -0,0 +1,64 @@ +#include +#include +#include +#include + +// Функции для печати в шестнадцатеричном и двоичном формате с разделением байт +void print_in_hex(uint16_t value) { + std::cout << std::hex << std::setw(2) << std::setfill('0') << (value >> 8); + std::cout << ' '; + std::cout << std::hex << std::setw(2) << std::setfill('0') << (value & 0xFF); +} + +void print_in_binary(uint16_t value) { + std::cout << std::bitset<8>(value >> 8) << ' '; + std::cout << std::bitset<8>(value & 0xFF); +} + +// Функция для выполнения побитовой операции +uint16_t calculate(uint16_t oper1, char operation, uint16_t oper2) { + switch (operation) { + case '&': return oper1 & oper2; + case '|': return oper1 | oper2; + case '^': return oper1 ^ oper2; + default: throw std::invalid_argument("Invalid operation"); + } +} + +int main() { + uint16_t oper1, oper2; + char operat; + + // Ввод данных + std::cout << "Enter the first oper (uint16_t): "; + std::cin >> oper1; + + std::cout << "Enter the operation (&, |, ^): "; + std::cin >> operat; + + std::cout << "Enter the second oper (uint16_t): "; + std::cin >> oper2; + + // Вычисление результата + uint16_t res = calculate(oper1, operat, oper2); + + // Вывод результата в шестнадцатеричном формате + std::cout << "Result in hexadecimal: "; + print_in_hex(oper1); + std::cout << " & "; + print_in_hex(oper2); + std::cout << " = "; + print_in_hex(res); + std::cout << std::endl; + + // Вывод результата в двоичном формате + std::cout << "Result in binary: " << std::endl; + print_in_binary(oper1); + std::cout << " &" << std::endl; + print_in_binary(oper2); + std::cout << " =" << std::endl; + print_in_binary(res); + std::cout << std::endl; + + return 0; +} diff --git a/2/2/2/2.vcxproj b/2/2/2/2.vcxproj new file mode 100644 index 0000000..a0759e9 --- /dev/null +++ b/2/2/2/2.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {b628e85e-63b4-48d1-bc31-f034b3d6f827} + My2 + 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..86b8205 --- /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.vcxproj.user b/2/2/2/2.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/2/2/2/2.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/2/2/2/x64/Debug/2.exe.recipe b/2/2/2/x64/Debug/2.exe.recipe new file mode 100644 index 0000000..898f325 --- /dev/null +++ b/2/2/2/x64/Debug/2.exe.recipe @@ -0,0 +1,11 @@ + + + + + C:\Users\tikho\Desktop\Учёба\Бакалавриат\2 курс\Разработка ПО СУ\lab03\2\2\x64\Debug\2.exe + + + + + + \ No newline at end of file diff --git a/2/2/2/x64/Debug/2.ilk b/2/2/2/x64/Debug/2.ilk new file mode 100644 index 0000000..f25ee0e Binary files /dev/null and b/2/2/2/x64/Debug/2.ilk differ diff --git a/2/2/2/x64/Debug/2.obj b/2/2/2/x64/Debug/2.obj new file mode 100644 index 0000000..f8fc4b9 Binary files /dev/null and b/2/2/2/x64/Debug/2.obj differ diff --git a/2/2/2/x64/Debug/2.tlog/2.lastbuildstate b/2/2/2/x64/Debug/2.tlog/2.lastbuildstate new file mode 100644 index 0000000..351d07d --- /dev/null +++ b/2/2/2/x64/Debug/2.tlog/2.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: +Debug|x64|C:\Users\tikho\Desktop\Учёба\Бакалавриат\2 курс\Разработка ПО СУ\lab03\2\2\| diff --git a/2/2/2/x64/Debug/2.tlog/CL.command.1.tlog b/2/2/2/x64/Debug/2.tlog/CL.command.1.tlog new file mode 100644 index 0000000..dec5a7f Binary files /dev/null and b/2/2/2/x64/Debug/2.tlog/CL.command.1.tlog differ diff --git a/2/2/2/x64/Debug/2.tlog/CL.read.1.tlog b/2/2/2/x64/Debug/2.tlog/CL.read.1.tlog new file mode 100644 index 0000000..316d807 Binary files /dev/null and b/2/2/2/x64/Debug/2.tlog/CL.read.1.tlog differ diff --git a/2/2/2/x64/Debug/2.tlog/CL.write.1.tlog b/2/2/2/x64/Debug/2.tlog/CL.write.1.tlog new file mode 100644 index 0000000..60af7e8 Binary files /dev/null and b/2/2/2/x64/Debug/2.tlog/CL.write.1.tlog differ diff --git a/2/2/2/x64/Debug/2.tlog/Cl.items.tlog b/2/2/2/x64/Debug/2.tlog/Cl.items.tlog new file mode 100644 index 0000000..b2d0047 --- /dev/null +++ b/2/2/2/x64/Debug/2.tlog/Cl.items.tlog @@ -0,0 +1 @@ +C:\Users\tikho\Desktop\Учёба\Бакалавриат\2 курс\Разработка ПО СУ\lab03\2\2\2\2.cpp;C:\Users\tikho\Desktop\Учёба\Бакалавриат\2 курс\Разработка ПО СУ\lab03\2\2\2\x64\Debug\2.obj diff --git a/2/2/2/x64/Debug/2.tlog/link.command.1.tlog b/2/2/2/x64/Debug/2.tlog/link.command.1.tlog new file mode 100644 index 0000000..363c005 Binary files /dev/null and b/2/2/2/x64/Debug/2.tlog/link.command.1.tlog differ diff --git a/2/2/2/x64/Debug/2.tlog/link.read.1.tlog b/2/2/2/x64/Debug/2.tlog/link.read.1.tlog new file mode 100644 index 0000000..13d115a Binary files /dev/null and b/2/2/2/x64/Debug/2.tlog/link.read.1.tlog differ diff --git a/2/2/2/x64/Debug/2.tlog/link.write.1.tlog b/2/2/2/x64/Debug/2.tlog/link.write.1.tlog new file mode 100644 index 0000000..3cf8777 Binary files /dev/null and b/2/2/2/x64/Debug/2.tlog/link.write.1.tlog differ diff --git a/2/2/2/x64/Debug/vc143.idb b/2/2/2/x64/Debug/vc143.idb new file mode 100644 index 0000000..4a9b34d Binary files /dev/null and b/2/2/2/x64/Debug/vc143.idb differ diff --git a/2/2/x64/Debug/2.exe b/2/2/x64/Debug/2.exe new file mode 100644 index 0000000..55c0d24 Binary files /dev/null and b/2/2/x64/Debug/2.exe differ diff --git a/3/3/.vs/3/v17/.suo b/3/3/.vs/3/v17/.suo new file mode 100644 index 0000000..bf72913 Binary files /dev/null and b/3/3/.vs/3/v17/.suo differ diff --git a/3/3/3.sln b/3/3/3.sln new file mode 100644 index 0000000..4fdd03f --- /dev/null +++ b/3/3/3.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34316.72 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "3", "3\3.vcxproj", "{AF4F3F97-A876-4AD6-B526-B1D0175B4800}" +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 + {AF4F3F97-A876-4AD6-B526-B1D0175B4800}.Debug|x64.ActiveCfg = Debug|x64 + {AF4F3F97-A876-4AD6-B526-B1D0175B4800}.Debug|x64.Build.0 = Debug|x64 + {AF4F3F97-A876-4AD6-B526-B1D0175B4800}.Debug|x86.ActiveCfg = Debug|Win32 + {AF4F3F97-A876-4AD6-B526-B1D0175B4800}.Debug|x86.Build.0 = Debug|Win32 + {AF4F3F97-A876-4AD6-B526-B1D0175B4800}.Release|x64.ActiveCfg = Release|x64 + {AF4F3F97-A876-4AD6-B526-B1D0175B4800}.Release|x64.Build.0 = Release|x64 + {AF4F3F97-A876-4AD6-B526-B1D0175B4800}.Release|x86.ActiveCfg = Release|Win32 + {AF4F3F97-A876-4AD6-B526-B1D0175B4800}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {89D4CBD1-019F-4B79-A2F3-1F1C0FF0558D} + EndGlobalSection +EndGlobal diff --git a/3/3/3/3.cpp b/3/3/3/3.cpp new file mode 100644 index 0000000..171f4d1 --- /dev/null +++ b/3/3/3/3.cpp @@ -0,0 +1,57 @@ +#include +#include +#include +#include + +struct Student { + char name[17]; + uint16_t year_of_admission; + float average_score; + unsigned int gender : 1; + unsigned int completed_courses; + Student* group_leader; +}; + +void print_in_hex(const void* data, size_t size) { + const unsigned char* byte_data = reinterpret_cast(data); + for (size_t i = 0; i < size; ++i) { + std::cout << std::hex << std::setw(2) << std::setfill('0') << static_cast(byte_data[i]) << " "; + } + std::cout << std::dec << "\n"; +} + +void print_student(const Student& student) { + std::cout << "Name: " << student.name << "\n"; + std::cout << "Year of Admission: " << student.year_of_admission << "\n"; + std::cout << "Average Score: " << student.average_score << "\n"; + std::cout << "Gender: " << student.gender << "\n"; + std::cout << "Completed Courses: " << student.completed_courses << "\n"; + std::cout << "Group Leader: " << student.group_leader << "\n\n"; +} + +int main() { + Student group_leader = { "Smirnov Ivan", 2023, 4.8, 1, 13, nullptr }; + Student student1 = { "Tihonov Pavel", 2024, 4.5, 1, 3, &group_leader }; + Student student2 = { "Kyznecova Maria", 2022, 4.2, 0, 22, &group_leader }; + Student students[] = { group_leader, student1, student2 }; + + std::cout << "Address of array: " << &students << "\n"; + std::cout << "Size of array: " << sizeof(students) << " bytes\n\n"; + + for (int i = 0; i < 3; ++i) { + std::cout << "Address of students[" << i << "]: " << &students[i] << "\n"; + std::cout << "Size of students[" << i << "]: " << sizeof(students[i]) << " bytes\n"; + } + std::cout << "\n"; + + // Информация для не старосты (student1) + std::cout << "Address of student1.name: " << static_cast(student1.name) << "\n"; + std::cout << "Offset of name: " << offsetof(Student, name) << "\n"; + std::cout << "Size of name: " << sizeof(student1.name) << "\n"; + print_in_hex(student1.name, sizeof(student1.name)); + + std::cout << "\nHex representation of all array elements:\n"; + print_in_hex(students, sizeof(students)); + + return 0; +} diff --git a/3/3/3/3.vcxproj b/3/3/3/3.vcxproj new file mode 100644 index 0000000..2fd3683 --- /dev/null +++ b/3/3/3/3.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {af4f3f97-a876-4ad6-b526-b1d0175b4800} + My3 + 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/3/3/3/3.vcxproj.filters b/3/3/3/3.vcxproj.filters new file mode 100644 index 0000000..42921ed --- /dev/null +++ b/3/3/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/3/3/3/3.vcxproj.user b/3/3/3/3.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/3/3/3/3.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/3/3/3/x64/Debug/3.exe.recipe b/3/3/3/x64/Debug/3.exe.recipe new file mode 100644 index 0000000..cad0780 --- /dev/null +++ b/3/3/3/x64/Debug/3.exe.recipe @@ -0,0 +1,11 @@ + + + + + C:\Users\tikho\Desktop\Учёба\Бакалавриат\2 курс\Разработка ПО СУ\lab03\3\3\x64\Debug\3.exe + + + + + + \ No newline at end of file diff --git a/3/3/3/x64/Debug/3.ilk b/3/3/3/x64/Debug/3.ilk new file mode 100644 index 0000000..539addb Binary files /dev/null and b/3/3/3/x64/Debug/3.ilk differ diff --git a/3/3/3/x64/Debug/3.obj b/3/3/3/x64/Debug/3.obj new file mode 100644 index 0000000..10af2f3 Binary files /dev/null and b/3/3/3/x64/Debug/3.obj differ diff --git a/3/3/3/x64/Debug/3.tlog/3.lastbuildstate b/3/3/3/x64/Debug/3.tlog/3.lastbuildstate new file mode 100644 index 0000000..9845b90 --- /dev/null +++ b/3/3/3/x64/Debug/3.tlog/3.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: +Debug|x64|C:\Users\tikho\Desktop\Учёба\Бакалавриат\2 курс\Разработка ПО СУ\lab03\3\3\| diff --git a/3/3/3/x64/Debug/3.tlog/CL.command.1.tlog b/3/3/3/x64/Debug/3.tlog/CL.command.1.tlog new file mode 100644 index 0000000..3c8c94b Binary files /dev/null and b/3/3/3/x64/Debug/3.tlog/CL.command.1.tlog differ diff --git a/3/3/3/x64/Debug/3.tlog/CL.read.1.tlog b/3/3/3/x64/Debug/3.tlog/CL.read.1.tlog new file mode 100644 index 0000000..d2eefd9 Binary files /dev/null and b/3/3/3/x64/Debug/3.tlog/CL.read.1.tlog differ diff --git a/3/3/3/x64/Debug/3.tlog/CL.write.1.tlog b/3/3/3/x64/Debug/3.tlog/CL.write.1.tlog new file mode 100644 index 0000000..8c022ab Binary files /dev/null and b/3/3/3/x64/Debug/3.tlog/CL.write.1.tlog differ diff --git a/3/3/3/x64/Debug/3.tlog/Cl.items.tlog b/3/3/3/x64/Debug/3.tlog/Cl.items.tlog new file mode 100644 index 0000000..c80505f --- /dev/null +++ b/3/3/3/x64/Debug/3.tlog/Cl.items.tlog @@ -0,0 +1 @@ +C:\Users\tikho\Desktop\Учёба\Бакалавриат\2 курс\Разработка ПО СУ\lab03\3\3\3\3.cpp;C:\Users\tikho\Desktop\Учёба\Бакалавриат\2 курс\Разработка ПО СУ\lab03\3\3\3\x64\Debug\3.obj diff --git a/3/3/3/x64/Debug/3.tlog/link.command.1.tlog b/3/3/3/x64/Debug/3.tlog/link.command.1.tlog new file mode 100644 index 0000000..5ab1043 Binary files /dev/null and b/3/3/3/x64/Debug/3.tlog/link.command.1.tlog differ diff --git a/3/3/3/x64/Debug/3.tlog/link.read.1.tlog b/3/3/3/x64/Debug/3.tlog/link.read.1.tlog new file mode 100644 index 0000000..0bb362b Binary files /dev/null and b/3/3/3/x64/Debug/3.tlog/link.read.1.tlog differ diff --git a/3/3/3/x64/Debug/3.tlog/link.write.1.tlog b/3/3/3/x64/Debug/3.tlog/link.write.1.tlog new file mode 100644 index 0000000..79c25a4 Binary files /dev/null and b/3/3/3/x64/Debug/3.tlog/link.write.1.tlog differ diff --git a/3/3/3/x64/Debug/vc143.idb b/3/3/3/x64/Debug/vc143.idb new file mode 100644 index 0000000..a12a659 Binary files /dev/null and b/3/3/3/x64/Debug/vc143.idb differ diff --git a/3/3/x64/Debug/3.exe b/3/3/x64/Debug/3.exe new file mode 100644 index 0000000..033d961 Binary files /dev/null and b/3/3/x64/Debug/3.exe differ diff --git a/4/4/.vs/ConsoleApplication3/v17/.suo b/4/4/.vs/ConsoleApplication3/v17/.suo new file mode 100644 index 0000000..525e9b3 Binary files /dev/null and b/4/4/.vs/ConsoleApplication3/v17/.suo differ diff --git a/4/4/ConsoleApplication3.sln b/4/4/ConsoleApplication3.sln new file mode 100644 index 0000000..423f06d --- /dev/null +++ b/4/4/ConsoleApplication3.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34316.72 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ConsoleApplication3", "ConsoleApplication3\ConsoleApplication3.vcxproj", "{3E250AF3-E0CE-4EA0-A330-30FCA4271CC9}" +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 + {3E250AF3-E0CE-4EA0-A330-30FCA4271CC9}.Debug|x64.ActiveCfg = Debug|x64 + {3E250AF3-E0CE-4EA0-A330-30FCA4271CC9}.Debug|x64.Build.0 = Debug|x64 + {3E250AF3-E0CE-4EA0-A330-30FCA4271CC9}.Debug|x86.ActiveCfg = Debug|Win32 + {3E250AF3-E0CE-4EA0-A330-30FCA4271CC9}.Debug|x86.Build.0 = Debug|Win32 + {3E250AF3-E0CE-4EA0-A330-30FCA4271CC9}.Release|x64.ActiveCfg = Release|x64 + {3E250AF3-E0CE-4EA0-A330-30FCA4271CC9}.Release|x64.Build.0 = Release|x64 + {3E250AF3-E0CE-4EA0-A330-30FCA4271CC9}.Release|x86.ActiveCfg = Release|Win32 + {3E250AF3-E0CE-4EA0-A330-30FCA4271CC9}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {927AC36C-CCB3-4FB2-B3F9-D653B77D682C} + EndGlobalSection +EndGlobal diff --git a/4/4/ConsoleApplication3/ConsoleApplication3.cpp b/4/4/ConsoleApplication3/ConsoleApplication3.cpp new file mode 100644 index 0000000..dbf5753 --- /dev/null +++ b/4/4/ConsoleApplication3/ConsoleApplication3.cpp @@ -0,0 +1,82 @@ +#include +#include +#include +#include + +bool is_valid_filename(const char* filename) { + // Проверка на запрещенные символы + if (strpbrk(filename, "*\"<>?|")) return false; + + // Проверка двоеточие + const char* colon = strchr(filename, ':'); + if (colon != nullptr) { + if (colon != filename + 1 || !isalpha(filename[0]) || colon[1] != '\\') return false; + } + + // Проверка расширения + const char* dot = strrchr(filename, '.'); + if (dot != nullptr) { + if (_stricmp(dot, ".txt") != 0) return false; + } + + return true; +} + +int count_occurrences(const char* text, const char* substring) { + int count = 0; + const char* temp = text; + while ((temp = strstr(temp, substring)) != nullptr) { + ++count; + ++temp; + } + return count; +} + +int main() { + char filename[260]; + std::cout << "Enter filename: "; + std::cin.getline(filename, 260); + + if (!is_valid_filename(filename)) { + std::cerr << "Invalid filename.\n"; + return 1; + } + + if (strrchr(filename, '.') == nullptr) { + strcat_s(filename, sizeof(filename), ".txt"); + } + + std::ifstream file(filename, std::ifstream::binary); + if (!file) { + std::cerr << "Failed to open file.\n"; + return 1; + } + + file.seekg(0, std::ifstream::end); + long size = file.tellg(); + file.seekg(0, std::ifstream::beg); + + char* buffer = new char[size + 1]; + file.read(buffer, size); + + buffer[size] = '\0'; + + + for (long i = 0; i < size; ++i) { + if (buffer[i] == '\r' && buffer[i + 1] == '\n') { + buffer[i] = '\n'; + std::memmove(&buffer[i + 1], &buffer[i + 2], size - i - 1); + size--; + } + } + + char search_string[100]; + std::cout << "Enter string to search: "; + std::cin.getline(search_string, 100); + + int occurrences = count_occurrences(buffer, search_string); + std::cout << "Occurrences of '" << search_string << "': " << occurrences << "\n"; + + delete[] buffer; + return 0; +} diff --git a/4/4/ConsoleApplication3/ConsoleApplication3.vcxproj b/4/4/ConsoleApplication3/ConsoleApplication3.vcxproj new file mode 100644 index 0000000..edda0f2 --- /dev/null +++ b/4/4/ConsoleApplication3/ConsoleApplication3.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {3e250af3-e0ce-4ea0-a330-30fca4271cc9} + ConsoleApplication3 + 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/4/4/ConsoleApplication3/ConsoleApplication3.vcxproj.filters b/4/4/ConsoleApplication3/ConsoleApplication3.vcxproj.filters new file mode 100644 index 0000000..5e0ccb5 --- /dev/null +++ b/4/4/ConsoleApplication3/ConsoleApplication3.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/4/4/ConsoleApplication3/ConsoleApplication3.vcxproj.user b/4/4/ConsoleApplication3/ConsoleApplication3.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/4/4/ConsoleApplication3/ConsoleApplication3.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/4/4/ConsoleApplication3/test.txt b/4/4/ConsoleApplication3/test.txt new file mode 100644 index 0000000..beef906 --- /dev/null +++ b/4/4/ConsoleApplication3/test.txt @@ -0,0 +1 @@ +World \ No newline at end of file diff --git a/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/CL.command.1.tlog b/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/CL.command.1.tlog new file mode 100644 index 0000000..c81b02a Binary files /dev/null and b/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/CL.command.1.tlog differ diff --git a/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/CL.read.1.tlog b/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/CL.read.1.tlog new file mode 100644 index 0000000..3b303a7 Binary files /dev/null and b/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/CL.read.1.tlog differ diff --git a/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/CL.write.1.tlog b/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/CL.write.1.tlog new file mode 100644 index 0000000..cdbb0f3 Binary files /dev/null and b/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/CL.write.1.tlog differ diff --git a/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/Cl.items.tlog b/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/Cl.items.tlog new file mode 100644 index 0000000..c05e193 --- /dev/null +++ b/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/Cl.items.tlog @@ -0,0 +1 @@ +C:\Users\tikho\Desktop\Учёба\Бакалавриат\2 курс\Разработка ПО СУ\lab03\4\4\ConsoleApplication3\ConsoleApplication3.cpp;C:\Users\tikho\Desktop\Учёба\Бакалавриат\2 курс\Разработка ПО СУ\lab03\4\4\ConsoleApplication3\x64\Debug\ConsoleApplication3.obj diff --git a/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/ConsoleApplication3.lastbuildstate b/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/ConsoleApplication3.lastbuildstate new file mode 100644 index 0000000..076b93d --- /dev/null +++ b/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/ConsoleApplication3.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0: +Debug|x64|C:\Users\tikho\Desktop\Учёба\Бакалавриат\2 курс\Разработка ПО СУ\lab03\4\4\| diff --git a/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/link.command.1.tlog b/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/link.command.1.tlog new file mode 100644 index 0000000..0714256 Binary files /dev/null and b/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/link.command.1.tlog differ diff --git a/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/link.read.1.tlog b/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/link.read.1.tlog new file mode 100644 index 0000000..a62335a Binary files /dev/null and b/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/link.read.1.tlog differ diff --git a/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/link.write.1.tlog b/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/link.write.1.tlog new file mode 100644 index 0000000..2405b68 Binary files /dev/null and b/4/4/ConsoleApplication3/x64/Debug/ConsoleA.3e250af3.tlog/link.write.1.tlog differ diff --git a/4/4/ConsoleApplication3/x64/Debug/ConsoleApplication3.exe.recipe b/4/4/ConsoleApplication3/x64/Debug/ConsoleApplication3.exe.recipe new file mode 100644 index 0000000..aca3a56 --- /dev/null +++ b/4/4/ConsoleApplication3/x64/Debug/ConsoleApplication3.exe.recipe @@ -0,0 +1,11 @@ + + + + + C:\Users\tikho\Desktop\Учёба\Бакалавриат\2 курс\Разработка ПО СУ\lab03\4\4\x64\Debug\ConsoleApplication3.exe + + + + + + \ No newline at end of file diff --git a/4/4/ConsoleApplication3/x64/Debug/ConsoleApplication3.ilk b/4/4/ConsoleApplication3/x64/Debug/ConsoleApplication3.ilk new file mode 100644 index 0000000..9426c3c Binary files /dev/null and b/4/4/ConsoleApplication3/x64/Debug/ConsoleApplication3.ilk differ diff --git a/4/4/ConsoleApplication3/x64/Debug/ConsoleApplication3.obj b/4/4/ConsoleApplication3/x64/Debug/ConsoleApplication3.obj new file mode 100644 index 0000000..cf75480 Binary files /dev/null and b/4/4/ConsoleApplication3/x64/Debug/ConsoleApplication3.obj differ diff --git a/4/4/ConsoleApplication3/x64/Debug/vc143.idb b/4/4/ConsoleApplication3/x64/Debug/vc143.idb new file mode 100644 index 0000000..50f0a78 Binary files /dev/null and b/4/4/ConsoleApplication3/x64/Debug/vc143.idb differ diff --git a/4/4/x64/Debug/ConsoleApplication3.exe b/4/4/x64/Debug/ConsoleApplication3.exe new file mode 100644 index 0000000..c7a7dac Binary files /dev/null and b/4/4/x64/Debug/ConsoleApplication3.exe differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/lab03.docx b/lab03.docx new file mode 100644 index 0000000..a598e74 Binary files /dev/null and b/lab03.docx differ