diff --git a/clock/clock.sln b/clock/clock.sln
new file mode 100644
index 0000000..4d80de5
--- /dev/null
+++ b/clock/clock.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}") = "clock", "clock.vcxproj", "{268761F2-AF30-432D-91DF-77542792A4AB}"
+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
+ {268761F2-AF30-432D-91DF-77542792A4AB}.Debug|x64.ActiveCfg = Debug|x64
+ {268761F2-AF30-432D-91DF-77542792A4AB}.Debug|x64.Build.0 = Debug|x64
+ {268761F2-AF30-432D-91DF-77542792A4AB}.Debug|x86.ActiveCfg = Debug|Win32
+ {268761F2-AF30-432D-91DF-77542792A4AB}.Debug|x86.Build.0 = Debug|Win32
+ {268761F2-AF30-432D-91DF-77542792A4AB}.Release|x64.ActiveCfg = Release|x64
+ {268761F2-AF30-432D-91DF-77542792A4AB}.Release|x64.Build.0 = Release|x64
+ {268761F2-AF30-432D-91DF-77542792A4AB}.Release|x86.ActiveCfg = Release|Win32
+ {268761F2-AF30-432D-91DF-77542792A4AB}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {C3BF0543-6AB5-420A-8BD4-2235A53DF4C4}
+ EndGlobalSection
+EndGlobal
diff --git a/clock/clock.vcxproj b/clock/clock.vcxproj
new file mode 100644
index 0000000..2fe3d14
--- /dev/null
+++ b/clock/clock.vcxproj
@@ -0,0 +1,135 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 17.0
+ Win32Proj
+ {268761f2-af30-432d-91df-77542792a4ab}
+ clock
+ 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/clock/clock.vcxproj.filters b/clock/clock.vcxproj.filters
new file mode 100644
index 0000000..669bc4e
--- /dev/null
+++ b/clock/clock.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/clock/main.c b/clock/main.c
new file mode 100644
index 0000000..168956b
--- /dev/null
+++ b/clock/main.c
@@ -0,0 +1,16 @@
+#include
+#include
+#include
+#include
+
+
+int main() {
+ int n = 10, sl = 10, last_clock = 0;
+ clock_t start = clock();
+ for (int i = 0; i < n; i++) {
+ printf_s("%d\n", i);
+ Sleep(sl);
+ }
+ printf_s("time = %.3lf seconds\nexpected %d seconds %lf", (double)(clock() - start) / (double)CLOCKS_PER_SEC, n * sl / 1000, 0.3300000000000000000000);
+ return 0;
+}
\ No newline at end of file
diff --git a/conversions/conversions.sln b/conversions/conversions.sln
new file mode 100644
index 0000000..5111a78
--- /dev/null
+++ b/conversions/conversions.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}") = "conversions", "conversions.vcxproj", "{D7D3694E-189B-4AA9-AE3C-CEC7985C856B}"
+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
+ {D7D3694E-189B-4AA9-AE3C-CEC7985C856B}.Debug|x64.ActiveCfg = Debug|x64
+ {D7D3694E-189B-4AA9-AE3C-CEC7985C856B}.Debug|x64.Build.0 = Debug|x64
+ {D7D3694E-189B-4AA9-AE3C-CEC7985C856B}.Debug|x86.ActiveCfg = Debug|Win32
+ {D7D3694E-189B-4AA9-AE3C-CEC7985C856B}.Debug|x86.Build.0 = Debug|Win32
+ {D7D3694E-189B-4AA9-AE3C-CEC7985C856B}.Release|x64.ActiveCfg = Release|x64
+ {D7D3694E-189B-4AA9-AE3C-CEC7985C856B}.Release|x64.Build.0 = Release|x64
+ {D7D3694E-189B-4AA9-AE3C-CEC7985C856B}.Release|x86.ActiveCfg = Release|Win32
+ {D7D3694E-189B-4AA9-AE3C-CEC7985C856B}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {78048FC0-18B8-440A-B1D2-DFFD10408223}
+ EndGlobalSection
+EndGlobal
diff --git a/conversions/conversions.vcxproj b/conversions/conversions.vcxproj
new file mode 100644
index 0000000..d636fc6
--- /dev/null
+++ b/conversions/conversions.vcxproj
@@ -0,0 +1,135 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 17.0
+ Win32Proj
+ {d7d3694e-189b-4aa9-ae3c-cec7985c856b}
+ conversions
+ 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/conversions/conversions.vcxproj.filters b/conversions/conversions.vcxproj.filters
new file mode 100644
index 0000000..669bc4e
--- /dev/null
+++ b/conversions/conversions.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/conversions/main.c b/conversions/main.c
new file mode 100644
index 0000000..3844d83
--- /dev/null
+++ b/conversions/main.c
@@ -0,0 +1,15 @@
+#include
+#include
+
+int main() {
+ double n = 0.33;
+ double sum = 0;
+ int base = 8;
+ for (int i = 0; i < 10; i++) {
+ printf_s("%d", (int)(n * base));
+ sum += (int)(n * base) * pow(base, -1 - i);
+ n = n * base - (int)(n * base);
+ }
+ printf_s("\n%lf", sum);
+ return 0;
+}
\ No newline at end of file
diff --git a/lab17/lab17/main.c b/lab17/lab17/main.c
index 7128821..2b1c93b 100644
--- a/lab17/lab17/main.c
+++ b/lab17/lab17/main.c
@@ -28,19 +28,12 @@ void f2(int n, FILE* f) {
fprintf(f, "f2(%d) -> print(%d) \n", n, n);
}
-void f3(int n, FILE* f) {
+void f3(int n) {
printf_s("%d ", n);
- fprintf(f, "f3(%d) -> print(%d) \n", n, n);
- if (n > 3) {
- f3(n - 2, f);
- fprintf(f, "f3(%d) returned \n", n - 2);
- }
- if (n == 3) {
- printf_s("1 ");
- fprintf(f, "f3(%d) && n == 3 -> print(%d) \n", n, 1);
+ if (n > 1) {
+ f3(n - 2);
}
printf_s("%d ", n);
- fprintf(f, "f3(%d) -> print(%d) \n", n, n);
}
void recEGE1(int n, FILE* f) {
@@ -121,7 +114,7 @@ int main() {
fprintf(fout, "\n");
printf_s("\n\n");
- f3(11, fout);
+ f3(11);
fprintf(fout, "f3(%d) returned\n", 11);
fprintf(fout, "\n");
diff --git a/lab17/lab17/trace.txt b/lab17/lab17/trace.txt
index 25775bf..7f62296 100644
--- a/lab17/lab17/trace.txt
+++ b/lab17/lab17/trace.txt
@@ -24,21 +24,6 @@ f2(9) returned
f2(11) -> print(11)
f2(11) returned
-f3(11) -> print(11)
-f3(9) -> print(9)
-f3(7) -> print(7)
-f3(5) -> print(5)
-f3(3) -> print(3)
-f3(3) && n == 3 -> print(1)
-f3(3) -> print(3)
-f3(3) returned
-f3(5) -> print(5)
-f3(5) returned
-f3(7) -> print(7)
-f3(7) returned
-f3(9) -> print(9)
-f3(9) returned
-f3(11) -> print(11)
f3(11) returned
recEGE1(3) && (n >= 1) == true -> print( 3)
diff --git a/lab18/lab18/lab18.cpp b/lab18/lab18/lab18.cpp
index 48db58e..61d99e1 100644
--- a/lab18/lab18/lab18.cpp
+++ b/lab18/lab18/lab18.cpp
@@ -259,8 +259,8 @@ void drawRecursiveCircle(HDC hdc, int cx, int cy, int size, int i) {
i--;
circlecount++;
- static HFONT hFont = CreateFontW(18, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, DEFAULT_CHARSET, OUT_OUTLINE_PRECIS,
- CLIP_DEFAULT_PRECIS, PROOF_QUALITY, VARIABLE_PITCH, TEXT("Consolas"));
+ static HFONT hFont = CreateFontW(18, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, DEFAULT_CHARSET,
+ OUT_OUTLINE_PRECIS, CLIP_DEFAULT_PRECIS, PROOF_QUALITY, VARIABLE_PITCH, TEXT("Consolas"));
SelectObject(hdc, hFont);
SetTextColor(hdc, RGB(0, 0, 0));
diff --git a/lab19/lab19/main.c b/lab19/lab19/main.c
index e0c451d..9aaafa8 100644
--- a/lab19/lab19/main.c
+++ b/lab19/lab19/main.c
@@ -351,7 +351,7 @@ int main() {
//task5();
- createRandomBinFiles(32, 32 * 1024);
+ createRandomBinFiles(32, 64 * 1024 * 1024);
printf_s("time = %.3lf seconds", (double)(clock() - start) / (double)CLOCKS_PER_SEC);
diff --git a/lab19/lab19/randbin/bin0 b/lab19/lab19/randbin/bin0
index a3a66fd..fb3f2b2 100644
Binary files a/lab19/lab19/randbin/bin0 and b/lab19/lab19/randbin/bin0 differ
diff --git a/lab20/lab20.sln b/lab20/lab20.sln
new file mode 100644
index 0000000..2eac83f
--- /dev/null
+++ b/lab20/lab20.sln
@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.11.35327.3
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lab20", "lab20\lab20.vcxproj", "{BEC1C9F8-3CA8-4228-9655-EC51B39ECA4B}"
+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
+ {BEC1C9F8-3CA8-4228-9655-EC51B39ECA4B}.Debug|x64.ActiveCfg = Debug|x64
+ {BEC1C9F8-3CA8-4228-9655-EC51B39ECA4B}.Debug|x64.Build.0 = Debug|x64
+ {BEC1C9F8-3CA8-4228-9655-EC51B39ECA4B}.Debug|x86.ActiveCfg = Debug|Win32
+ {BEC1C9F8-3CA8-4228-9655-EC51B39ECA4B}.Debug|x86.Build.0 = Debug|Win32
+ {BEC1C9F8-3CA8-4228-9655-EC51B39ECA4B}.Release|x64.ActiveCfg = Release|x64
+ {BEC1C9F8-3CA8-4228-9655-EC51B39ECA4B}.Release|x64.Build.0 = Release|x64
+ {BEC1C9F8-3CA8-4228-9655-EC51B39ECA4B}.Release|x86.ActiveCfg = Release|Win32
+ {BEC1C9F8-3CA8-4228-9655-EC51B39ECA4B}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {D9DF22E7-12A5-4CCF-A78D-F7E81AE12588}
+ EndGlobalSection
+EndGlobal
diff --git a/lab20/lab20/lab20.vcxproj b/lab20/lab20/lab20.vcxproj
new file mode 100644
index 0000000..6967813
--- /dev/null
+++ b/lab20/lab20/lab20.vcxproj
@@ -0,0 +1,135 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 17.0
+ Win32Proj
+ {bec1c9f8-3ca8-4228-9655-ec51b39eca4b}
+ lab20
+ 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/lab20/lab20/lab20.vcxproj.filters b/lab20/lab20/lab20.vcxproj.filters
new file mode 100644
index 0000000..669bc4e
--- /dev/null
+++ b/lab20/lab20/lab20.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/lab20/lab20/main.c b/lab20/lab20/main.c
new file mode 100644
index 0000000..f8f766b
--- /dev/null
+++ b/lab20/lab20/main.c
@@ -0,0 +1,6 @@
+#include
+
+int main() {
+
+ return 0;
+}
\ No newline at end of file
diff --git a/logic/logic.sln b/logic/logic.sln
new file mode 100644
index 0000000..fa90985
--- /dev/null
+++ b/logic/logic.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}") = "logic", "logic.vcxproj", "{0837E6C8-2FDD-4B18-AD59-96E8B75A0E75}"
+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
+ {0837E6C8-2FDD-4B18-AD59-96E8B75A0E75}.Debug|x64.ActiveCfg = Debug|x64
+ {0837E6C8-2FDD-4B18-AD59-96E8B75A0E75}.Debug|x64.Build.0 = Debug|x64
+ {0837E6C8-2FDD-4B18-AD59-96E8B75A0E75}.Debug|x86.ActiveCfg = Debug|Win32
+ {0837E6C8-2FDD-4B18-AD59-96E8B75A0E75}.Debug|x86.Build.0 = Debug|Win32
+ {0837E6C8-2FDD-4B18-AD59-96E8B75A0E75}.Release|x64.ActiveCfg = Release|x64
+ {0837E6C8-2FDD-4B18-AD59-96E8B75A0E75}.Release|x64.Build.0 = Release|x64
+ {0837E6C8-2FDD-4B18-AD59-96E8B75A0E75}.Release|x86.ActiveCfg = Release|Win32
+ {0837E6C8-2FDD-4B18-AD59-96E8B75A0E75}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {841C0A48-DE0D-41D2-B431-8CEF53A52D00}
+ EndGlobalSection
+EndGlobal
diff --git a/logic/logic.vcxproj b/logic/logic.vcxproj
new file mode 100644
index 0000000..f27e045
--- /dev/null
+++ b/logic/logic.vcxproj
@@ -0,0 +1,135 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 17.0
+ Win32Proj
+ {0837e6c8-2fdd-4b18-ad59-96e8b75a0e75}
+ logic
+ 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/logic/logic.vcxproj.filters b/logic/logic.vcxproj.filters
new file mode 100644
index 0000000..669bc4e
--- /dev/null
+++ b/logic/logic.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/logic/main.c b/logic/main.c
new file mode 100644
index 0000000..1585324
--- /dev/null
+++ b/logic/main.c
@@ -0,0 +1,16 @@
+#include
+#include
+
+int f(int A, int B) {
+ return (A and B) == (((not B) <= (not A)) xor A);
+}
+
+int main() {
+ printf_s("A B f\n");
+ for (int A = 0; A <= 1; A++) {
+ for (int B = 0; B <= 1; B++) {
+ printf_s("%d %d %d\n", A, B, f(A, B));
+ }
+ }
+ return 0;
+}
diff --git a/threads/main.c b/threads/main.c
new file mode 100644
index 0000000..d83858b
--- /dev/null
+++ b/threads/main.c
@@ -0,0 +1,15 @@
+#include
+#include
+#include
+
+void thrd_func(int* i) {
+ printf_s("%d\n", *i);
+}
+
+int main() {
+ thrd_t* threads[10];
+ for (int i = 0; i < 10; i++) {
+ thrd_create(threads[i], thrd_func, &i);
+ }
+ return 0;
+}
\ No newline at end of file
diff --git a/threads/threads.sln b/threads/threads.sln
new file mode 100644
index 0000000..979afa4
--- /dev/null
+++ b/threads/threads.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}") = "threads", "threads.vcxproj", "{0D89D366-F1EE-4FF3-AF21-0E209449319E}"
+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
+ {0D89D366-F1EE-4FF3-AF21-0E209449319E}.Debug|x64.ActiveCfg = Debug|x64
+ {0D89D366-F1EE-4FF3-AF21-0E209449319E}.Debug|x64.Build.0 = Debug|x64
+ {0D89D366-F1EE-4FF3-AF21-0E209449319E}.Debug|x86.ActiveCfg = Debug|Win32
+ {0D89D366-F1EE-4FF3-AF21-0E209449319E}.Debug|x86.Build.0 = Debug|Win32
+ {0D89D366-F1EE-4FF3-AF21-0E209449319E}.Release|x64.ActiveCfg = Release|x64
+ {0D89D366-F1EE-4FF3-AF21-0E209449319E}.Release|x64.Build.0 = Release|x64
+ {0D89D366-F1EE-4FF3-AF21-0E209449319E}.Release|x86.ActiveCfg = Release|Win32
+ {0D89D366-F1EE-4FF3-AF21-0E209449319E}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {BACEAC8C-D7B3-4929-952A-9A23E610A197}
+ EndGlobalSection
+EndGlobal
diff --git a/threads/threads.vcxproj b/threads/threads.vcxproj
new file mode 100644
index 0000000..79454ee
--- /dev/null
+++ b/threads/threads.vcxproj
@@ -0,0 +1,135 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 17.0
+ Win32Proj
+ {0d89d366-f1ee-4ff3-af21-0e209449319e}
+ threads
+ 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/threads/threads.vcxproj.filters b/threads/threads.vcxproj.filters
new file mode 100644
index 0000000..669bc4e
--- /dev/null
+++ b/threads/threads.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