From 0e05d52a8f59869a0d4f8eb90533de1da894fa21 Mon Sep 17 00:00:00 2001 From: Kaehvaman Date: Fri, 25 Oct 2024 12:20:22 +0400 Subject: [PATCH] Added old projects --- .gitignore | 2 - HelloWorld/HelloWorld.sln | 31 ++++ HelloWorld/HelloWorld/HelloWorld.vcxproj | 135 ++++++++++++++++++ .../HelloWorld/HelloWorld.vcxproj.filters | 22 +++ HelloWorld/HelloWorld/main.c | 11 ++ array test/array test.sln | 31 ++++ array test/array test/array test.vcxproj | 135 ++++++++++++++++++ .../array test/array test.vcxproj.filters | 22 +++ array test/array test/main.c | 22 +++ 9 files changed, 409 insertions(+), 2 deletions(-) create mode 100644 HelloWorld/HelloWorld.sln create mode 100644 HelloWorld/HelloWorld/HelloWorld.vcxproj create mode 100644 HelloWorld/HelloWorld/HelloWorld.vcxproj.filters create mode 100644 HelloWorld/HelloWorld/main.c create mode 100644 array test/array test.sln create mode 100644 array test/array test/array test.vcxproj create mode 100644 array test/array test/array test.vcxproj.filters create mode 100644 array test/array test/main.c diff --git a/.gitignore b/.gitignore index 47f3903..9f5e5bd 100644 --- a/.gitignore +++ b/.gitignore @@ -5,8 +5,6 @@ ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore # my filter -array test/ -Helloworld/ # User-specific files *.rsuser diff --git a/HelloWorld/HelloWorld.sln b/HelloWorld/HelloWorld.sln new file mode 100644 index 0000000..5ffae5b --- /dev/null +++ b/HelloWorld/HelloWorld.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}") = "HelloWorld", "HelloWorld\HelloWorld.vcxproj", "{4B3C19D8-B1DB-4539-AB75-5EE0B1848D67}" +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 + {4B3C19D8-B1DB-4539-AB75-5EE0B1848D67}.Debug|x64.ActiveCfg = Debug|x64 + {4B3C19D8-B1DB-4539-AB75-5EE0B1848D67}.Debug|x64.Build.0 = Debug|x64 + {4B3C19D8-B1DB-4539-AB75-5EE0B1848D67}.Debug|x86.ActiveCfg = Debug|Win32 + {4B3C19D8-B1DB-4539-AB75-5EE0B1848D67}.Debug|x86.Build.0 = Debug|Win32 + {4B3C19D8-B1DB-4539-AB75-5EE0B1848D67}.Release|x64.ActiveCfg = Release|x64 + {4B3C19D8-B1DB-4539-AB75-5EE0B1848D67}.Release|x64.Build.0 = Release|x64 + {4B3C19D8-B1DB-4539-AB75-5EE0B1848D67}.Release|x86.ActiveCfg = Release|Win32 + {4B3C19D8-B1DB-4539-AB75-5EE0B1848D67}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B3E3D5E3-37C0-4502-8C19-AB3F7C79BC70} + EndGlobalSection +EndGlobal diff --git a/HelloWorld/HelloWorld/HelloWorld.vcxproj b/HelloWorld/HelloWorld/HelloWorld.vcxproj new file mode 100644 index 0000000..d88f371 --- /dev/null +++ b/HelloWorld/HelloWorld/HelloWorld.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {4b3c19d8-b1db-4539-ab75-5ee0b1848d67} + HelloWorld + 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/HelloWorld/HelloWorld/HelloWorld.vcxproj.filters b/HelloWorld/HelloWorld/HelloWorld.vcxproj.filters new file mode 100644 index 0000000..669bc4e --- /dev/null +++ b/HelloWorld/HelloWorld/HelloWorld.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/HelloWorld/HelloWorld/main.c b/HelloWorld/HelloWorld/main.c new file mode 100644 index 0000000..10e1942 --- /dev/null +++ b/HelloWorld/HelloWorld/main.c @@ -0,0 +1,11 @@ +#include +#include + +int main() { + for (int i = 0; i < 10; i++) { + printf("%d bruh its C language\n", i); + } + puts("lolo", 6); + + return 0; +} \ No newline at end of file diff --git a/array test/array test.sln b/array test/array test.sln new file mode 100644 index 0000000..b91929f --- /dev/null +++ b/array test/array test.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}") = "array test", "array test\array test.vcxproj", "{C5115BE6-213E-486F-A71D-138D76E1CD82}" +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 + {C5115BE6-213E-486F-A71D-138D76E1CD82}.Debug|x64.ActiveCfg = Debug|x64 + {C5115BE6-213E-486F-A71D-138D76E1CD82}.Debug|x64.Build.0 = Debug|x64 + {C5115BE6-213E-486F-A71D-138D76E1CD82}.Debug|x86.ActiveCfg = Debug|Win32 + {C5115BE6-213E-486F-A71D-138D76E1CD82}.Debug|x86.Build.0 = Debug|Win32 + {C5115BE6-213E-486F-A71D-138D76E1CD82}.Release|x64.ActiveCfg = Release|x64 + {C5115BE6-213E-486F-A71D-138D76E1CD82}.Release|x64.Build.0 = Release|x64 + {C5115BE6-213E-486F-A71D-138D76E1CD82}.Release|x86.ActiveCfg = Release|Win32 + {C5115BE6-213E-486F-A71D-138D76E1CD82}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {890E4E21-C85B-4732-B744-CBFBBA882797} + EndGlobalSection +EndGlobal diff --git a/array test/array test/array test.vcxproj b/array test/array test/array test.vcxproj new file mode 100644 index 0000000..c2601e9 --- /dev/null +++ b/array test/array test/array test.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {c5115be6-213e-486f-a71d-138d76e1cd82} + arraytest + 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/array test/array test/array test.vcxproj.filters b/array test/array test/array test.vcxproj.filters new file mode 100644 index 0000000..669bc4e --- /dev/null +++ b/array test/array test/array test.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/array test/array test/main.c b/array test/array test/main.c new file mode 100644 index 0000000..86fb6d2 --- /dev/null +++ b/array test/array test/main.c @@ -0,0 +1,22 @@ +#include + + +void printarr(int arr[], int len) { + printf("["); + for (int i = 0; i < len; i++) { + printf("%d, ", arr[i]); + } + printf("\b\b]"); +} + +int main() { + + int a[20]; + int b[-1]; + + printarr(a, 20); + printf("\n"); + printarr(b, 5); + + return 0; +} \ No newline at end of file