commit f01e88ed5e07609c04f51ceeab30572541b2b7ca Author: szabomarton Date: Mon Dec 4 10:51:29 2023 +0100 Added everything from Neumann diff --git a/20230523/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20230523/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..711d033 Binary files /dev/null and b/20230523/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20230523/ConsoleApp1/App.config b/20230523/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230523/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230523/ConsoleApp1/ConsoleApp1.csproj b/20230523/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..c6c4a81 --- /dev/null +++ b/20230523/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {A2A0DFA4-2C93-45D8-B191-99C1F490AC08} + Exe + ConsoleApp1 + ConsoleApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/20230523/ConsoleApp1/ConsoleApp1.sln b/20230523/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..1159890 --- /dev/null +++ b/20230523/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{A2A0DFA4-2C93-45D8-B191-99C1F490AC08}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A2A0DFA4-2C93-45D8-B191-99C1F490AC08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A2A0DFA4-2C93-45D8-B191-99C1F490AC08}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A2A0DFA4-2C93-45D8-B191-99C1F490AC08}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A2A0DFA4-2C93-45D8-B191-99C1F490AC08}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E7F5E1A0-5DEF-4DFE-B4AB-4C98A061C3D4} + EndGlobalSection +EndGlobal diff --git a/20230523/ConsoleApp1/Program.cs b/20230523/ConsoleApp1/Program.cs new file mode 100644 index 0000000..7a3973d --- /dev/null +++ b/20230523/ConsoleApp1/Program.cs @@ -0,0 +1,116 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + class Program + { + static void Feladat1() + { + int szum = 0; + int[] tomb = {1,2,3,4,5,6,7,8,9,0,0}; + int n = tomb.Length; + for (int i = 0; i < n; ++i) + { + szum += tomb[i]; + } + Console.WriteLine($"A tömb összege: {szum}"); + } + + static void Feladat2() + { + int[] tomb = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 0 }; + int n = tomb.Length; + int db = 0; + for (int i = 0; i < n; ++i) + { + if (tomb[i] < 5) + { + ++db; + } + } + Console.WriteLine($"Darabszám: {db}"); + } + + static void Feladat3() + { + int[] tomb = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 0 }; + int n = tomb.Length; + bool van = false; + + for (int i = 0; i < n; ++i) + { + if (tomb[i] == 5) + { + van = true; + break; + } + } + + Console.WriteLine($"Van? : {van}"); + } + + static void Feladat4() + { + int[] tomb = { }; + Random random = new Random(); + for (int i = 0; i < 10; ++i) + { + tomb = tomb.Append(random.Next(1,7)).ToArray(); + } + + bool van = false; + int n = tomb.Length; + + for (int i = 0; i < n; ++i) + { + if (tomb[i] == 6) + { + van = true; + break; + } + } + + Console.WriteLine($"Van? : {van}"); + + for (int i = 0; i < n; ++i) + { + Console.WriteLine(tomb[i]); + } + } + + static void Feladat5() + { + Console.WriteLine("Adj egy szót!"); + string str = Console.ReadLine(); + bool vanmaganhangzo = false; + List maganhangzok = new List(); + + maganhangzok.Add('a'); + maganhangzok.Add('e'); + maganhangzok.Add('i'); + maganhangzok.Add('o'); + maganhangzok.Add('u'); + + foreach (char c in str) + { + if (maganhangzok.Contains(c)) + { + vanmaganhangzo = true; + break; + } + } + + Console.WriteLine($"Van: {vanmaganhangzo}"); + } + static void Main(string[] args) + { + Feladat5(); + Console.ReadLine(); + } + } +} + \ No newline at end of file diff --git a/20230523/ConsoleApp1/Properties/AssemblyInfo.cs b/20230523/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..9b60d61 --- /dev/null +++ b/20230523/ConsoleApp1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ConsoleApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleApp1")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("a2a0dfa4-2c93-45d8-b191-99c1f490ac08")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20230523/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20230523/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..f1782d4 Binary files /dev/null and b/20230523/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20230523/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20230523/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230523/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230523/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20230523/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..9959970 Binary files /dev/null and b/20230523/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20230523/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20230523/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20230523/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20230523/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20230523/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..0da8ef2 Binary files /dev/null and b/20230523/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20230523/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20230523/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20230523/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20230523/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20230523/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..22a17ed --- /dev/null +++ b/20230523/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20230523\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20230523\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20230523\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20230523\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20230523\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20230523\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20230523\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20230523/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20230523/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..f1782d4 Binary files /dev/null and b/20230523/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20230523/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20230523/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..9959970 Binary files /dev/null and b/20230523/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20230523/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20230523/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..ca32056 Binary files /dev/null and b/20230523/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20230606/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20230606/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..1e49a79 Binary files /dev/null and b/20230606/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20230606/ConsoleApp1/App.config b/20230606/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230606/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230606/ConsoleApp1/ConsoleApp1.csproj b/20230606/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..6652c01 --- /dev/null +++ b/20230606/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {D85F91EA-8305-4C0F-9B28-BF0AAFA8AE28} + Exe + ConsoleApp1 + ConsoleApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/20230606/ConsoleApp1/ConsoleApp1.sln b/20230606/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..dd95982 --- /dev/null +++ b/20230606/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{D85F91EA-8305-4C0F-9B28-BF0AAFA8AE28}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D85F91EA-8305-4C0F-9B28-BF0AAFA8AE28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D85F91EA-8305-4C0F-9B28-BF0AAFA8AE28}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D85F91EA-8305-4C0F-9B28-BF0AAFA8AE28}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D85F91EA-8305-4C0F-9B28-BF0AAFA8AE28}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F94D6298-8CAD-4F79-9D74-A3AFE44BA66C} + EndGlobalSection +EndGlobal diff --git a/20230606/ConsoleApp1/Program.cs b/20230606/ConsoleApp1/Program.cs new file mode 100644 index 0000000..0d111ea --- /dev/null +++ b/20230606/ConsoleApp1/Program.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + class Program + { + static void Feladat1() + { + int[] a = { 9, 7, 3, 5, 4, 2, 6 }; + int n = a.Length; + int[] b = new int[n]; + int j = 0; + for (int i = 0; i < n; ++i) + if (a[i] < 5) + { + b[j] = a[i]; + ++j; + } + Console.WriteLine("Eredeti: "); + for (int i = 0; i < n; ++i) + Console.WriteLine($"{a[i]} "); + Console.WriteLine(""); + Console.WriteLine("Kivlogatott: "); + for (int i = 0; i < j; ++i) + Console.WriteLine($"{b[i]} "); + Console.WriteLine(""); + } + + public static int Lineariskereses(int[] tomb, int elem) + { + int index = -1; + for (int i = 0; i < tomb.Length; ++i) + { + if (tomb[i] == elem) + { + index = i; + break; + } + } + return index; + } + static void Feladat2() + { + int[] a = { 9, 7, 3, 5, 4, 2, 6 }; + int elem = Convert.ToInt32(Console.ReadLine()); + Console.WriteLine(Lineariskereses(a,elem)); + } + static void Main(string[] args) + { + Feladat2(); + Console.ReadKey(); + } + } +} diff --git a/20230606/ConsoleApp1/Properties/AssemblyInfo.cs b/20230606/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..9eae0b4 --- /dev/null +++ b/20230606/ConsoleApp1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ConsoleApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleApp1")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("d85f91ea-8305-4c0f-9b28-bf0aafa8ae28")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20230606/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20230606/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..3018178 Binary files /dev/null and b/20230606/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20230606/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20230606/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230606/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230606/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20230606/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..36a00ca Binary files /dev/null and b/20230606/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20230606/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20230606/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20230606/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20230606/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20230606/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20230606/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20230606/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20230606/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20230606/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20230606/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20230606/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..22ab89a --- /dev/null +++ b/20230606/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20230606\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20230606\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20230606\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20230606\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20230606\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20230606\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20230606\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20230606/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20230606/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..3018178 Binary files /dev/null and b/20230606/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20230606/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20230606/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..36a00ca Binary files /dev/null and b/20230606/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20230606/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20230606/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..2ad5e4d Binary files /dev/null and b/20230606/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20230613/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20230613/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..e7bfb64 Binary files /dev/null and b/20230613/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20230613/ConsoleApp1/App.config b/20230613/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230613/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230613/ConsoleApp1/ConsoleApp1.csproj b/20230613/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..34d7288 --- /dev/null +++ b/20230613/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {A4E028EC-AF60-46CD-82B6-A92F5B5E1F47} + Exe + ConsoleApp1 + ConsoleApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/20230613/ConsoleApp1/ConsoleApp1.sln b/20230613/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..e56ce12 --- /dev/null +++ b/20230613/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{A4E028EC-AF60-46CD-82B6-A92F5B5E1F47}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A4E028EC-AF60-46CD-82B6-A92F5B5E1F47}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A4E028EC-AF60-46CD-82B6-A92F5B5E1F47}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A4E028EC-AF60-46CD-82B6-A92F5B5E1F47}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A4E028EC-AF60-46CD-82B6-A92F5B5E1F47}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {81807357-13FD-4F1A-A854-555A39C30C73} + EndGlobalSection +EndGlobal diff --git a/20230613/ConsoleApp1/Program.cs b/20230613/ConsoleApp1/Program.cs new file mode 100644 index 0000000..58e2f42 --- /dev/null +++ b/20230613/ConsoleApp1/Program.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + class Program + { + static void Feladat1() + { + //egyszerű rendezés + int[] t = {22,-5,4,33,9,-3,7,15,0,20}; + int n = t.Length; + for (int i = 0; i < n; ++i) + Console.WriteLine($"{t[i]}"); + Console.WriteLine(""); + + for (int i = 0; i < n - 1; ++i) + { + for (int j = i + 1; j < n; ++j) + { + if (t[i] > t[j]) + { + int swap = t[j]; + t[j] = t[i]; + t[i] = swap; + } + } + } + + Console.WriteLine("Rendezés után:"); + for (int i = 0; i < n; ++i) + Console.WriteLine($"{t[i]}"); + Console.WriteLine(""); + + + } + + static void Feladat2() + { + //buborékos rendezés + int[] t = { 22, -5, 4, 33, 9, -3, 7, 15, 0, 20 }; + int n = t.Length; + for (int i = 0; i < n; ++i) + Console.WriteLine($"{t[i]}"); + Console.WriteLine(""); + + for (int i = n - 1; i > 0; --i) + { + for (int j = 0; j < i; ++j) + { + if (t[j] > t[j+1]) + { + int swap = t[j+1]; + t[j+1] = t[j]; + t[j] = swap; + } + } + } + + Console.WriteLine("Rendezés után:"); + for (int i = 0; i < n; ++i) + Console.WriteLine($"{t[i]}"); + Console.WriteLine(""); + + + } + static void Main(string[] args) + { + Feladat1(); + Feladat2(); + Console.ReadKey(); + } + } +} diff --git a/20230613/ConsoleApp1/Properties/AssemblyInfo.cs b/20230613/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..7bc58e8 --- /dev/null +++ b/20230613/ConsoleApp1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ConsoleApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleApp1")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("a4e028ec-af60-46cd-82b6-a92f5b5e1f47")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20230613/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20230613/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..b800a1d Binary files /dev/null and b/20230613/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20230613/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20230613/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230613/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230613/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20230613/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..e301233 Binary files /dev/null and b/20230613/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20230613/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20230613/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20230613/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20230613/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20230613/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..0da8ef2 Binary files /dev/null and b/20230613/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20230613/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20230613/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20230613/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20230613/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20230613/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..8096149 --- /dev/null +++ b/20230613/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20230613\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20230613\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20230613\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20230613\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20230613\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20230613\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20230613\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20230613/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20230613/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..b800a1d Binary files /dev/null and b/20230613/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20230613/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20230613/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..e301233 Binary files /dev/null and b/20230613/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20230613/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20230613/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..7982c6f Binary files /dev/null and b/20230613/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20230904/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20230904/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..6f9d42f Binary files /dev/null and b/20230904/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20230904/ConsoleApp1/App.config b/20230904/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230904/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230904/ConsoleApp1/ConsoleApp1.csproj b/20230904/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..3ece1e0 --- /dev/null +++ b/20230904/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {9E098B3C-FD45-4945-9D0E-DE090D6CC874} + Exe + ConsoleApp1 + ConsoleApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/20230904/ConsoleApp1/ConsoleApp1.sln b/20230904/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..f235bab --- /dev/null +++ b/20230904/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{9E098B3C-FD45-4945-9D0E-DE090D6CC874}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9E098B3C-FD45-4945-9D0E-DE090D6CC874}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9E098B3C-FD45-4945-9D0E-DE090D6CC874}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9E098B3C-FD45-4945-9D0E-DE090D6CC874}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9E098B3C-FD45-4945-9D0E-DE090D6CC874}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {78DC73FE-3418-4504-BA3E-AF528BD3B033} + EndGlobalSection +EndGlobal diff --git a/20230904/ConsoleApp1/Program.cs b/20230904/ConsoleApp1/Program.cs new file mode 100644 index 0000000..e525ff3 --- /dev/null +++ b/20230904/ConsoleApp1/Program.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + class Program + { + static void Feladat1() + { + int paros = 0; + int paratlan = 1; + for(int i = 1; i <= 9; ++i) + { + if (i % 2 == 0) + { + //paros + paros += i; + } else + { + paratlan *= i; + } + } + Console.WriteLine($"A páros számok összege: {paros}"); + Console.WriteLine($"A páratlan számok szorzata: {paratlan}"); + + paros = 0; + paratlan = 1; + + int cntr = 1; + while (cntr < 10) + { + if (cntr % 2 == 0) + { + //paros + paros += cntr; + } + else + { + paratlan *= cntr; + } + ++cntr; + } + Console.WriteLine($"A páros számok összege: {paros}"); + Console.WriteLine($"A páratlan számok szorzata: {paratlan}"); + } + + static void Feladat2() + { + Console.WriteLine("Adj egy számot!"); + string szam = Console.ReadLine(); + + Console.WriteLine($"A szám számjegyeinek száma: {szam.Length}"); + + int szam1 = Convert.ToInt32(szam); + int cntr = 1; + + while (szam1 > 10) + { + szam1 /= 10; + ++cntr; + } + Console.WriteLine($"A szám számjegyeinek száma: {cntr}"); + } + + static void Feladat3() + { + int[] arr = new int[10]; + for (int i = 0; i < arr.Length; ++i) + { + arr[i] = i * 2 + 2; + } + + foreach (int x in arr) + { + Console.WriteLine($"{x}"); + } + } + + static void Feladat4() + { + Console.WriteLine("Add meg a testtömeged kg ban!"); + double kg = Convert.ToInt32(Console.ReadLine()); + Console.WriteLine("Add mega testmagasságod cm ben!"); + double m = Convert.ToDouble(Console.ReadLine()) / 100; + bool fiu = false; + Console.WriteLine("Fiú vagy? i/n"); + string lanye = Console.ReadLine(); + if (lanye == "i") + { + fiu = true; + } + + double bmi = kg / (m * m); + + if (fiu) + { + if (bmi < 19) + { + Console.WriteLine("Sovány"); + } else + { + Console.WriteLine("Nem Sovány"); + } + + } else + { + if (bmi < 19) + { + Console.WriteLine("Sovány"); + } + else + { + Console.WriteLine("Nem Sovány"); + } + } + + + } + static void Main(string[] args) + { + Feladat4(); + Console.ReadKey(); + } + } +} diff --git a/20230904/ConsoleApp1/Properties/AssemblyInfo.cs b/20230904/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..d1f5e5c --- /dev/null +++ b/20230904/ConsoleApp1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ConsoleApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleApp1")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("9e098b3c-fd45-4945-9d0e-de090d6cc874")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20230904/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20230904/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..f9a63e7 Binary files /dev/null and b/20230904/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20230904/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20230904/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230904/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230904/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20230904/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..2a0e3df Binary files /dev/null and b/20230904/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20230904/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20230904/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20230904/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20230904/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20230904/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..0da8ef2 Binary files /dev/null and b/20230904/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20230904/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20230904/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20230904/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20230904/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20230904/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..ec8e6fb --- /dev/null +++ b/20230904/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20230904\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20230904\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20230904\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20230904\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20230904\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20230904\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20230904\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20230904/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20230904/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..f9a63e7 Binary files /dev/null and b/20230904/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20230904/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20230904/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..2a0e3df Binary files /dev/null and b/20230904/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20230904/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20230904/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..dbf8aeb Binary files /dev/null and b/20230904/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20230911/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20230911/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..358c45e Binary files /dev/null and b/20230911/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20230911/ConsoleApp1/App.config b/20230911/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230911/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230911/ConsoleApp1/ConsoleApp1.csproj b/20230911/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..c63d90c --- /dev/null +++ b/20230911/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {6E6BD18D-A0A2-4811-AB0E-B1A3B06AB8F9} + Exe + ConsoleApp1 + ConsoleApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/20230911/ConsoleApp1/ConsoleApp1.sln b/20230911/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..737578b --- /dev/null +++ b/20230911/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{6E6BD18D-A0A2-4811-AB0E-B1A3B06AB8F9}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6E6BD18D-A0A2-4811-AB0E-B1A3B06AB8F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6E6BD18D-A0A2-4811-AB0E-B1A3B06AB8F9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6E6BD18D-A0A2-4811-AB0E-B1A3B06AB8F9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6E6BD18D-A0A2-4811-AB0E-B1A3B06AB8F9}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4E17AECF-74F5-4EB1-936C-1251E665B7A7} + EndGlobalSection +EndGlobal diff --git a/20230911/ConsoleApp1/Program.cs b/20230911/ConsoleApp1/Program.cs new file mode 100644 index 0000000..afc63b9 --- /dev/null +++ b/20230911/ConsoleApp1/Program.cs @@ -0,0 +1,120 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.IO; + +namespace ConsoleApp1 +{ + class Program + { + static void Feladat1() + { + int n = 6; + int m = 2; + int[,] betuk = new int [n,m]; + string asd = "bzbzbzauzguzbvukzbkjhbvjkhvta"; + for (int i = 0; i < asd.Length; ++i) + { + char x = asd[i]; + for (int z = 0; z < n; ++z) + { + if (x == Convert.ToChar(betuk[z, 0])) + { + betuk[z, 1]++; + break; + } + else + { + betuk[z, 0] = Convert.ToInt32(x); + betuk[z, 1]++; + break; + } + } + } + Console.WriteLine(Convert.ToChar(betuk[0, 0])); + Console.WriteLine(betuk[0, 1]); + Console.WriteLine(betuk[1, 0]); + Console.WriteLine(betuk[1, 1]); + + for (int a = 0; a < n; ++a) + { + for (int b = 0; b < m; ++b) + { + Console.WriteLine(betuk[a, b]); + } + } + + } + + static void Feladat2() + { + FileStream fs = new FileStream("asd.txt", FileMode.Open); + StreamReader sr = new StreamReader(fs); + string str = sr.ReadToEnd(); + + var dict = new Dictionary(); + foreach (char c in str) + { + dict.TryGetValue(c, out int count); + dict[c] = ++count; + } + + foreach (var pair in dict.OrderBy(r => r.Key)) + { + Console.WriteLine(pair.Value + "x " + pair.Key + " (" + (int)pair.Key + ")"); + } + + sr.Close(); + fs.Close(); + } + + static void Feladat3() + { + string egeszSzoveg; + char[] karakterek = { }; + FileStream fs = new FileStream(@"C:\Users\szabomarton\Desktop\C#\allomanyok\asd2.txt", FileMode.Open, FileAccess.Read); + StreamReader sr = new StreamReader(fs, Encoding.Default); + egeszSzoveg = sr.ReadToEnd(); + int karakterIndex = 0; + int ennyivan = 0; + for (int i = 0; i < egeszSzoveg.Length; ++i) + { + if (!karakterek.Contains(egeszSzoveg[i])) + { + karakterek = karakterek.Append(egeszSzoveg[i]).ToArray(); + } + } + + Array.Sort(karakterek); + + while (karakterIndex < karakterek.Length) + { + for (int i = 0; i < egeszSzoveg.Length; ++i) + { + if (egeszSzoveg[i] == karakterek[karakterIndex]) + { + ennyivan++; + } + } + Console.WriteLine($"Ennyi {karakterek[karakterIndex]} van: {ennyivan}"); + karakterIndex++; + ennyivan = 0; + } + + sr.Close(); + fs.Close(); + } + + static void Feladat4() + { + + } + static void Main(string[] args) + { + Feladat4(); + Console.ReadLine(); + } + } +} diff --git a/20230911/ConsoleApp1/Properties/AssemblyInfo.cs b/20230911/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..491bc91 --- /dev/null +++ b/20230911/ConsoleApp1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ConsoleApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleApp1")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("6e6bd18d-a0a2-4811-ab0e-b1a3b06ab8f9")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20230911/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20230911/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..87371cc Binary files /dev/null and b/20230911/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20230911/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20230911/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230911/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230911/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20230911/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..adb63b7 Binary files /dev/null and b/20230911/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20230911/ConsoleApp1/bin/Debug/asd.txt.txt b/20230911/ConsoleApp1/bin/Debug/asd.txt.txt new file mode 100644 index 0000000..9554089 --- /dev/null +++ b/20230911/ConsoleApp1/bin/Debug/asd.txt.txt @@ -0,0 +1,6 @@ +asd +asd +WE +QWN +ewersefsdf +dfq \ No newline at end of file diff --git a/20230911/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20230911/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20230911/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20230911/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20230911/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20230911/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20230911/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20230911/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20230911/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20230911/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20230911/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..68b6555 --- /dev/null +++ b/20230911/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20230911\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20230911\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20230911\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20230911\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20230911\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20230911\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20230911\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20230911/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20230911/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..87371cc Binary files /dev/null and b/20230911/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20230911/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20230911/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..adb63b7 Binary files /dev/null and b/20230911/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20230911/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20230911/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..d993fd8 Binary files /dev/null and b/20230911/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20230911/ConsoleApp2/.vs/ConsoleApp2/v16/.suo b/20230911/ConsoleApp2/.vs/ConsoleApp2/v16/.suo new file mode 100644 index 0000000..449be8b Binary files /dev/null and b/20230911/ConsoleApp2/.vs/ConsoleApp2/v16/.suo differ diff --git a/20230911/ConsoleApp2/App.config b/20230911/ConsoleApp2/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230911/ConsoleApp2/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230911/ConsoleApp2/ConsoleApp2.csproj b/20230911/ConsoleApp2/ConsoleApp2.csproj new file mode 100644 index 0000000..2ab25aa --- /dev/null +++ b/20230911/ConsoleApp2/ConsoleApp2.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {63FA3D3A-76D7-41A7-8961-6C9788A7BAED} + Exe + ConsoleApp2 + ConsoleApp2 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/20230911/ConsoleApp2/ConsoleApp2.sln b/20230911/ConsoleApp2/ConsoleApp2.sln new file mode 100644 index 0000000..36a6342 --- /dev/null +++ b/20230911/ConsoleApp2/ConsoleApp2.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp2", "ConsoleApp2.csproj", "{63FA3D3A-76D7-41A7-8961-6C9788A7BAED}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {63FA3D3A-76D7-41A7-8961-6C9788A7BAED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {63FA3D3A-76D7-41A7-8961-6C9788A7BAED}.Debug|Any CPU.Build.0 = Debug|Any CPU + {63FA3D3A-76D7-41A7-8961-6C9788A7BAED}.Release|Any CPU.ActiveCfg = Release|Any CPU + {63FA3D3A-76D7-41A7-8961-6C9788A7BAED}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5C42103E-C5B0-49F2-9D61-7B580AC7A313} + EndGlobalSection +EndGlobal diff --git a/20230911/ConsoleApp2/Program.cs b/20230911/ConsoleApp2/Program.cs new file mode 100644 index 0000000..084deb1 --- /dev/null +++ b/20230911/ConsoleApp2/Program.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.IO; + +namespace ConsoleApp2 +{ + class Program + { + static void Feladat3() + { + string egeszSzoveg; + char[] karakterek = { }; + FileStream fs = new FileStream(@"asdasd.txt", FileMode.Open, FileAccess.Read); + StreamReader sr = new StreamReader(fs, Encoding.Default); + egeszSzoveg = sr.ReadToEnd(); + int karakterIndex = 0; + int ennyivan = 0; + for (int i = 0; i < egeszSzoveg.Length; ++i) + { + if (!karakterek.Contains(egeszSzoveg[i])) + { + karakterek = karakterek.Append(egeszSzoveg[i]).ToArray(); + } + } + + Array.Sort(karakterek); + + while (karakterIndex < karakterek.Length) + { + for (int i = 0; i < egeszSzoveg.Length; ++i) + { + if (egeszSzoveg[i] == karakterek[karakterIndex]) + { + ennyivan++; + } + } + Console.WriteLine($"Ennyi {karakterek[karakterIndex]} van: {ennyivan}"); + karakterIndex++; + ennyivan = 0; + } + + sr.Close(); + fs.Close(); + } + static void Main(string[] args) + { + Feladat3(); + Console.ReadLine(); + } + } +} diff --git a/20230911/ConsoleApp2/Properties/AssemblyInfo.cs b/20230911/ConsoleApp2/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..062ada7 --- /dev/null +++ b/20230911/ConsoleApp2/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ConsoleApp2")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleApp2")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("63fa3d3a-76d7-41a7-8961-6c9788a7baed")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20230911/ConsoleApp2/bin/Debug/ConsoleApp2.exe b/20230911/ConsoleApp2/bin/Debug/ConsoleApp2.exe new file mode 100644 index 0000000..5208753 Binary files /dev/null and b/20230911/ConsoleApp2/bin/Debug/ConsoleApp2.exe differ diff --git a/20230911/ConsoleApp2/bin/Debug/ConsoleApp2.exe.config b/20230911/ConsoleApp2/bin/Debug/ConsoleApp2.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230911/ConsoleApp2/bin/Debug/ConsoleApp2.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230911/ConsoleApp2/bin/Debug/ConsoleApp2.pdb b/20230911/ConsoleApp2/bin/Debug/ConsoleApp2.pdb new file mode 100644 index 0000000..34b4bb5 Binary files /dev/null and b/20230911/ConsoleApp2/bin/Debug/ConsoleApp2.pdb differ diff --git a/20230911/ConsoleApp2/bin/Debug/asdasd.txt.txt b/20230911/ConsoleApp2/bin/Debug/asdasd.txt.txt new file mode 100644 index 0000000..e5b5614 --- /dev/null +++ b/20230911/ConsoleApp2/bin/Debug/asdasd.txt.txt @@ -0,0 +1,2 @@ +asd +sda \ No newline at end of file diff --git a/20230911/ConsoleApp2/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20230911/ConsoleApp2/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20230911/ConsoleApp2/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20230911/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.AssemblyReference.cache b/20230911/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20230911/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.AssemblyReference.cache differ diff --git a/20230911/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.CoreCompileInputs.cache b/20230911/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20230911/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20230911/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.FileListAbsolute.txt b/20230911/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..da14014 --- /dev/null +++ b/20230911/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20230911\ConsoleApp2\bin\Debug\ConsoleApp2.exe.config +C:\Users\szabomarton\Desktop\C#\20230911\ConsoleApp2\bin\Debug\ConsoleApp2.exe +C:\Users\szabomarton\Desktop\C#\20230911\ConsoleApp2\bin\Debug\ConsoleApp2.pdb +C:\Users\szabomarton\Desktop\C#\20230911\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20230911\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20230911\ConsoleApp2\obj\Debug\ConsoleApp2.exe +C:\Users\szabomarton\Desktop\C#\20230911\ConsoleApp2\obj\Debug\ConsoleApp2.pdb diff --git a/20230911/ConsoleApp2/obj/Debug/ConsoleApp2.exe b/20230911/ConsoleApp2/obj/Debug/ConsoleApp2.exe new file mode 100644 index 0000000..5208753 Binary files /dev/null and b/20230911/ConsoleApp2/obj/Debug/ConsoleApp2.exe differ diff --git a/20230911/ConsoleApp2/obj/Debug/ConsoleApp2.pdb b/20230911/ConsoleApp2/obj/Debug/ConsoleApp2.pdb new file mode 100644 index 0000000..34b4bb5 Binary files /dev/null and b/20230911/ConsoleApp2/obj/Debug/ConsoleApp2.pdb differ diff --git a/20230911/ConsoleApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20230911/ConsoleApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..9f69432 Binary files /dev/null and b/20230911/ConsoleApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20230918/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20230918/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..5a61d26 Binary files /dev/null and b/20230918/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20230918/ConsoleApp1/App.config b/20230918/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230918/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230918/ConsoleApp1/ConsoleApp1.csproj b/20230918/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..8e9759d --- /dev/null +++ b/20230918/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {EC6B1EA9-EFEA-4037-83F4-C4FCD03C3ED0} + Exe + ConsoleApp1 + ConsoleApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/20230918/ConsoleApp1/ConsoleApp1.sln b/20230918/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..4af3d03 --- /dev/null +++ b/20230918/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{EC6B1EA9-EFEA-4037-83F4-C4FCD03C3ED0}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {EC6B1EA9-EFEA-4037-83F4-C4FCD03C3ED0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EC6B1EA9-EFEA-4037-83F4-C4FCD03C3ED0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EC6B1EA9-EFEA-4037-83F4-C4FCD03C3ED0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EC6B1EA9-EFEA-4037-83F4-C4FCD03C3ED0}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {0223D6F6-1BC6-435B-A3DA-7FCDED0C50A3} + EndGlobalSection +EndGlobal diff --git a/20230918/ConsoleApp1/Program.cs b/20230918/ConsoleApp1/Program.cs new file mode 100644 index 0000000..e7cb873 --- /dev/null +++ b/20230918/ConsoleApp1/Program.cs @@ -0,0 +1,200 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + class Program + { + public static class GlobalData + { + public static int[] szamok = new int[100]; + public static int[] kisebb250 = { }; + } + + static void Feladat1() + { + Random random = new Random(); + for (int i = 0; i < GlobalData.szamok.Length; i++) + { + GlobalData.szamok[i] = random.Next(100, 500); + } + } + + static void Feladat2() + { + int sum = 0; + foreach (int n in GlobalData.szamok) + { + sum += n; + } + Console.WriteLine(sum); + } + + static void Feladat3() + { + bool van100 = false; + foreach (int n in GlobalData.szamok) + { + if (n == 100) + { + van100 = true; + break; + } + } + if (van100) + { + Console.WriteLine("Van 100 a listában."); + } else + { + Console.WriteLine("Nincs 100 a listában."); + } + } + + static void Feladat4() + { + int max = GlobalData.szamok[0]; + foreach (int n in GlobalData.szamok) + { + if (n > max) + { + max = n; + } + } + Console.WriteLine($"A legnagyobb szám: {max}"); + } + + static void Feladat5() + { + int min = GlobalData.szamok[0]; + foreach (int n in GlobalData.szamok) + { + if (n < min) + { + min = n; + } + } + Console.WriteLine($"A legkisebb szám: {min}"); + } + + static void Feladat6() + { + foreach (int n in GlobalData.szamok) + { + if (n < 250) + { + GlobalData.kisebb250 = GlobalData.kisebb250.Append(n).ToArray(); + } + } + } + + static void Feladat7(int keresendo) + { + int index = 0; + for (int i = 0; i < GlobalData.kisebb250.Length; i++) + { + if(GlobalData.kisebb250[i] == keresendo) + { + index = i; + break; + } + index = -1; + } + + if (index == -1) + { + Console.WriteLine("Nincs ilyen elem."); + } else + { + Console.WriteLine($"Az elem indexe: {index}"); + } + + } + + static void Feladat8() + { + for (int j = 0; j < GlobalData.kisebb250.Length; j++) + { + for (int g = 0; g < GlobalData.kisebb250.Length; g++) + { + if (GlobalData.kisebb250[j] < GlobalData.kisebb250[g]) + { + int seged = GlobalData.kisebb250[j]; + GlobalData.kisebb250[j] = GlobalData.kisebb250[g]; + GlobalData.kisebb250[g] = seged; + } + } + } + + foreach (int n in GlobalData.kisebb250) + { + Console.WriteLine(n); + } + } + + static void Feladat9() + { + int lngt = GlobalData.szamok.Length; + for (int j = 0; j < lngt; j++) + { + for (int g = 0; g < (lngt - 1); g++) + { + if (GlobalData.szamok[g] > GlobalData.szamok[g + 1]) + { + int seged = GlobalData.szamok[g + 1]; + GlobalData.szamok[g + 1] = GlobalData.szamok[g]; + GlobalData.szamok[g] = seged; + } + } + } + + foreach (int n in GlobalData.szamok) + { + Console.WriteLine(n); + } + } + + static void Feladat10(int keresendo) + { + Console.WriteLine(Array.BinarySearch(GlobalData.szamok, keresendo)); + } + + static void Feladat11(int keresendo) + { + Console.WriteLine(Array.BinarySearch(GlobalData.szamok, keresendo)); + + int i = GlobalData.szamok.Length / 2; + int megold = -1; + int ciklus = 2; + while (megold == -1) + { + if (GlobalData.szamok[i] > keresendo) + { + int num = Convert.ToInt32(Math.Pow(2, ciklus)); + i += GlobalData.szamok.Length / (num); + } else + { + int num = Convert.ToInt32(Math.Pow(2, ciklus)); + i -= GlobalData.szamok.Length / (num); + } + } + } + static void Main(string[] args) + { + Feladat1(); + Feladat2(); + Feladat3(); + Feladat4(); + Feladat5(); + Feladat6(); + Feladat7(150); + Feladat8(); + Feladat9(); + Feladat10(150); + Feladat11(150); + Console.ReadLine(); + } + } +} diff --git a/20230918/ConsoleApp1/Properties/AssemblyInfo.cs b/20230918/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..dd82072 --- /dev/null +++ b/20230918/ConsoleApp1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ConsoleApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleApp1")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("ec6b1ea9-efea-4037-83f4-c4fcd03c3ed0")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20230918/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20230918/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..cf15e71 Binary files /dev/null and b/20230918/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20230918/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20230918/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230918/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230918/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20230918/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..8a269f0 Binary files /dev/null and b/20230918/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20230918/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20230918/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20230918/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20230918/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20230918/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20230918/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20230918/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20230918/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20230918/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20230918/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20230918/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..6d15f6b --- /dev/null +++ b/20230918/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20230918\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20230918\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20230918\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20230918\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20230918\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20230918\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20230918\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20230918/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20230918/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..cf15e71 Binary files /dev/null and b/20230918/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20230918/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20230918/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..8a269f0 Binary files /dev/null and b/20230918/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20230918/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20230918/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..283eaac Binary files /dev/null and b/20230918/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20230925/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20230925/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..d53cb04 Binary files /dev/null and b/20230925/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20230925/ConsoleApp1/App.config b/20230925/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230925/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230925/ConsoleApp1/ConsoleApp1.csproj b/20230925/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..d7d1207 --- /dev/null +++ b/20230925/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {D9C6D66B-B867-4E06-B0EF-31C531ADA779} + Exe + ConsoleApp1 + ConsoleApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/20230925/ConsoleApp1/ConsoleApp1.sln b/20230925/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..d3ab044 --- /dev/null +++ b/20230925/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{D9C6D66B-B867-4E06-B0EF-31C531ADA779}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D9C6D66B-B867-4E06-B0EF-31C531ADA779}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D9C6D66B-B867-4E06-B0EF-31C531ADA779}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D9C6D66B-B867-4E06-B0EF-31C531ADA779}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D9C6D66B-B867-4E06-B0EF-31C531ADA779}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B5D67275-86C5-4833-8AF0-2906915C859E} + EndGlobalSection +EndGlobal diff --git a/20230925/ConsoleApp1/Program.cs b/20230925/ConsoleApp1/Program.cs new file mode 100644 index 0000000..e5efc16 --- /dev/null +++ b/20230925/ConsoleApp1/Program.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Collections; + +namespace ConsoleApp1 +{ + class Program + { + static void Feladat1() + { + ArrayList arlist = new ArrayList(); + Random random = new Random(); + for (int i = 0; i < 100; ++i) + { + int x = random.Next(100, 500); + arlist.Add(x); + } + + foreach (int i in arlist) + { + Console.WriteLine(i); + } + + int a = arlist.Count; + int b = arlist.Capacity; + bool c = arlist.Contains(125); + arlist.Sort(); + Console.WriteLine(""); + Console.WriteLine(a); + Console.WriteLine(b); + Console.WriteLine(c); + Console.WriteLine(""); + + foreach (int i in arlist) + { + Console.WriteLine(i); + } + arlist.Clear(); + + foreach (int i in arlist) + { + Console.WriteLine(i); + } + + + } + + static void Feladat2() + { + string maidatum = ""; + ArrayList date_0 = new ArrayList(); + ArrayList date_1 = new ArrayList(); + ArrayList date_2 = new ArrayList(); + ArrayList date_3 = new ArrayList(); + ArrayList date_4 = new ArrayList(); + maidatum = Console.ReadLine(); + do + { + string[] date = maidatum.Split('.'); + date_0.Add(date[0]); + date_1.Add(date[1]); + date_2.Add(date[2]); + date_3.Add(date[3]); + date_4.Add(date[4]); + maidatum = Console.ReadLine(); + } while (maidatum != "0"); + + for (int i = 0; i < date_0.Count; i++) + { + Console.WriteLine($"{date_0[i]}.{date_1[i]}.{date_2[i]} {date_3[i]}:{date_4[i]}"); + } + + + } + static void Main(string[] args) + { + Feladat2(); + Console.ReadLine(); + } + } +} diff --git a/20230925/ConsoleApp1/Properties/AssemblyInfo.cs b/20230925/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..fc7ec56 --- /dev/null +++ b/20230925/ConsoleApp1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ConsoleApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleApp1")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("d9c6d66b-b867-4e06-b0ef-31c531ada779")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20230925/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20230925/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..ab2c859 Binary files /dev/null and b/20230925/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20230925/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20230925/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230925/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230925/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20230925/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..4a09701 Binary files /dev/null and b/20230925/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20230925/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20230925/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20230925/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20230925/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20230925/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20230925/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20230925/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20230925/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20230925/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20230925/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20230925/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..e39c024 --- /dev/null +++ b/20230925/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20230925\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20230925\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20230925\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20230925\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20230925\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20230925\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20230925\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20230925/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20230925/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..ab2c859 Binary files /dev/null and b/20230925/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20230925/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20230925/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..4a09701 Binary files /dev/null and b/20230925/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20230925/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20230925/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..d6c7698 Binary files /dev/null and b/20230925/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20231002/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20231002/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..3bd1a9a Binary files /dev/null and b/20231002/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20231002/ConsoleApp1/App.config b/20231002/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231002/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231002/ConsoleApp1/ConsoleApp1.csproj b/20231002/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..e3c01c4 --- /dev/null +++ b/20231002/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {3B5A78CD-BF75-48E5-B477-0889846CDDBF} + Exe + ConsoleApp1 + ConsoleApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/20231002/ConsoleApp1/ConsoleApp1.sln b/20231002/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..69f54a9 --- /dev/null +++ b/20231002/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{3B5A78CD-BF75-48E5-B477-0889846CDDBF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3B5A78CD-BF75-48E5-B477-0889846CDDBF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3B5A78CD-BF75-48E5-B477-0889846CDDBF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3B5A78CD-BF75-48E5-B477-0889846CDDBF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3B5A78CD-BF75-48E5-B477-0889846CDDBF}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {AC6DB7A2-0EBC-4D61-9D1A-B8AB7BA4E8FE} + EndGlobalSection +EndGlobal diff --git a/20231002/ConsoleApp1/Program.cs b/20231002/ConsoleApp1/Program.cs new file mode 100644 index 0000000..c60bfbd --- /dev/null +++ b/20231002/ConsoleApp1/Program.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + class Program + { + static void Main(string[] args) + { + + } + } +} diff --git a/20231002/ConsoleApp1/Properties/AssemblyInfo.cs b/20231002/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..69aab95 --- /dev/null +++ b/20231002/ConsoleApp1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ConsoleApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleApp1")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("3b5a78cd-bf75-48e5-b477-0889846cddbf")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20231002/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20231002/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20231002/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20231002/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20231002/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..4eb356a Binary files /dev/null and b/20231002/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20231002/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20231002/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..7034223 Binary files /dev/null and b/20231002/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20231009/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20231009/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..e29b103 Binary files /dev/null and b/20231009/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20231009/ConsoleApp1/App.config b/20231009/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231009/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231009/ConsoleApp1/ConsoleApp1.csproj b/20231009/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..c4c4548 --- /dev/null +++ b/20231009/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {88485A13-FA53-4DB9-A9C2-A3A340605858} + Exe + ConsoleApp1 + ConsoleApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/20231009/ConsoleApp1/ConsoleApp1.sln b/20231009/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..647a489 --- /dev/null +++ b/20231009/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{88485A13-FA53-4DB9-A9C2-A3A340605858}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {88485A13-FA53-4DB9-A9C2-A3A340605858}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {88485A13-FA53-4DB9-A9C2-A3A340605858}.Debug|Any CPU.Build.0 = Debug|Any CPU + {88485A13-FA53-4DB9-A9C2-A3A340605858}.Release|Any CPU.ActiveCfg = Release|Any CPU + {88485A13-FA53-4DB9-A9C2-A3A340605858}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E165DBDD-2A2F-4A0B-844E-4C09FE543EF9} + EndGlobalSection +EndGlobal diff --git a/20231009/ConsoleApp1/Program.cs b/20231009/ConsoleApp1/Program.cs new file mode 100644 index 0000000..ea9bacc --- /dev/null +++ b/20231009/ConsoleApp1/Program.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + class Program + { + static void Main(string[] args) + { + } + } +} diff --git a/20231009/ConsoleApp1/Properties/AssemblyInfo.cs b/20231009/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b948eab --- /dev/null +++ b/20231009/ConsoleApp1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ConsoleApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleApp1")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("88485a13-fa53-4db9-a9c2-a3a340605858")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20231009/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20231009/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..c512d7d Binary files /dev/null and b/20231009/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20231009/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20231009/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231009/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231009/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20231009/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..8315025 Binary files /dev/null and b/20231009/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20231009/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20231009/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20231009/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20231009/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20231009/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..4eb356a Binary files /dev/null and b/20231009/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20231009/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20231009/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20231009/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20231009/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20231009/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..6f2dca4 --- /dev/null +++ b/20231009/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20231009\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20231009\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231009\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20231009\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20231009\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20231009\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231009\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20231009/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20231009/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..c512d7d Binary files /dev/null and b/20231009/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20231009/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20231009/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..8315025 Binary files /dev/null and b/20231009/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20231009/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20231009/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..5e0891b Binary files /dev/null and b/20231009/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20231016/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20231016/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..1f3ae80 Binary files /dev/null and b/20231016/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20231016/ConsoleApp1/App.config b/20231016/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231016/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231016/ConsoleApp1/ConsoleApp1.csproj b/20231016/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..21c8798 --- /dev/null +++ b/20231016/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {2C9DE68F-6CB8-4038-BE20-F84954D5928D} + Exe + ConsoleApp1 + ConsoleApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/20231016/ConsoleApp1/ConsoleApp1.sln b/20231016/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..d0dd186 --- /dev/null +++ b/20231016/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{2C9DE68F-6CB8-4038-BE20-F84954D5928D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2C9DE68F-6CB8-4038-BE20-F84954D5928D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2C9DE68F-6CB8-4038-BE20-F84954D5928D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2C9DE68F-6CB8-4038-BE20-F84954D5928D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2C9DE68F-6CB8-4038-BE20-F84954D5928D}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3DF782F8-0FBC-4263-8342-344B114F084A} + EndGlobalSection +EndGlobal diff --git a/20231016/ConsoleApp1/Program.cs b/20231016/ConsoleApp1/Program.cs new file mode 100644 index 0000000..70c6d5e --- /dev/null +++ b/20231016/ConsoleApp1/Program.cs @@ -0,0 +1,62 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + class MyClass + { + private string message; + + public MyClass() + { + message = "Üdvüzölek a MyClass osztályban!"; + } + + public MyClass(string Name) + { + message = $"Üdvüzölek {Name} a MyClass osztályban!"; + } + + public MyClass(int x, int y) + { + message = $"Üdvüzölek a MyClass osztályban! \nAz általad adott számok szorzata: {x*y}"; + } + + public MyClass(bool kedves) + { + if (kedves) + { + message = "Üdvüzölek a MyClass osztályban!"; + } else + { + message = "A MyClass osztályban vagy te gyász!"; + } + } + + public void Uzenet() + { + Console.WriteLine(message); + } + } + class Program + { + static void Main(string[] args) + { + MyClass valami = new MyClass(); + valami.Uzenet(); + MyClass Sanyi = new MyClass("Sanyi"); + Sanyi.Uzenet(); + MyClass Szamol = new MyClass(5, 7); + Szamol.Uzenet(); + MyClass kedves = new MyClass(true); + kedves.Uzenet(); + MyClass bunko = new MyClass(false); + bunko.Uzenet(); + + Console.ReadLine(); + } + } +} diff --git a/20231016/ConsoleApp1/Properties/AssemblyInfo.cs b/20231016/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..3c78f95 --- /dev/null +++ b/20231016/ConsoleApp1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ConsoleApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleApp1")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("2c9de68f-6cb8-4038-be20-f84954d5928d")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20231016/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20231016/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..5236ea4 Binary files /dev/null and b/20231016/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20231016/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20231016/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231016/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231016/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20231016/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..4f0dc12 Binary files /dev/null and b/20231016/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20231016/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20231016/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20231016/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20231016/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20231016/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..0da8ef2 Binary files /dev/null and b/20231016/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20231016/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20231016/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20231016/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20231016/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20231016/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..b82890a --- /dev/null +++ b/20231016/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20231016\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20231016\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231016\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20231016\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20231016\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20231016\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231016\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20231016/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20231016/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..5236ea4 Binary files /dev/null and b/20231016/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20231016/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20231016/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..4f0dc12 Binary files /dev/null and b/20231016/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20231016/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20231016/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..d131949 Binary files /dev/null and b/20231016/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20231106/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20231106/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..6e49a5b Binary files /dev/null and b/20231106/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20231106/ConsoleApp1/App.config b/20231106/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231106/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231106/ConsoleApp1/ConsoleApp1.csproj b/20231106/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..d30a3df --- /dev/null +++ b/20231106/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {E73F6C92-399F-4FD2-9450-56B3AABC59D1} + Exe + ConsoleApp1 + ConsoleApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/20231106/ConsoleApp1/ConsoleApp1.sln b/20231106/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..37943c0 --- /dev/null +++ b/20231106/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{E73F6C92-399F-4FD2-9450-56B3AABC59D1}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E73F6C92-399F-4FD2-9450-56B3AABC59D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E73F6C92-399F-4FD2-9450-56B3AABC59D1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E73F6C92-399F-4FD2-9450-56B3AABC59D1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E73F6C92-399F-4FD2-9450-56B3AABC59D1}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {7C906475-23F2-4F00-9FC0-8D191EC5488F} + EndGlobalSection +EndGlobal diff --git a/20231106/ConsoleApp1/Program.cs b/20231106/ConsoleApp1/Program.cs new file mode 100644 index 0000000..0b7bfd3 --- /dev/null +++ b/20231106/ConsoleApp1/Program.cs @@ -0,0 +1,81 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + public class AlkalmazasBeall + { + public string AppNev { get; private set; } + public string Version { get; private set; } + + private AlkalmazasBeall() + { + AppNev = "MyApp"; + Version = "1.0"; + } + + private static AlkalmazasBeall pl; + + public static AlkalmazasBeall GetPL() + { + if (pl == null) + { + pl = new AlkalmazasBeall(); + } + return pl; + } + + } + + class Szemely + { + private string nev; + private int kor; + + public string Nev + { + get { return nev; } + set { nev = value; } + } + + public int Kor + { + get { return kor; } + set { + if (value >= 0) + { + kor = 2023 - value; + } else + { + Console.WriteLine("Az életkor nem lehet igaz!"); + } + } + } + } + + + class Program + { + static void Main(string[] args) + { + AlkalmazasBeall settings = AlkalmazasBeall.GetPL(); + + Console.WriteLine($"Alkalmazás neve: {settings.AppNev}"); + Console.WriteLine($"Alkalmazás verziója: {settings.Version}"); + + Szemely szemely = new Szemely(); + Console.WriteLine("Add meg a neved!"); + szemely.Nev = Console.ReadLine(); + Console.WriteLine("Add meg, hogy mikor születtél!"); + szemely.Kor = Convert.ToInt32(Console.ReadLine()); + + Console.WriteLine(szemely.Nev); + Console.WriteLine(szemely.Kor); + + Console.ReadLine(); + } + } +} diff --git a/20231106/ConsoleApp1/Properties/AssemblyInfo.cs b/20231106/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..01c1c54 --- /dev/null +++ b/20231106/ConsoleApp1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ConsoleApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleApp1")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("e73f6c92-399f-4fd2-9450-56b3aabc59d1")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20231106/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20231106/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..73dcbc3 Binary files /dev/null and b/20231106/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20231106/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20231106/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231106/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231106/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20231106/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..88b0875 Binary files /dev/null and b/20231106/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20231106/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20231106/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20231106/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20231106/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20231106/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20231106/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20231106/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20231106/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20231106/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20231106/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20231106/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..8cb7067 --- /dev/null +++ b/20231106/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20231106\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20231106\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20231106\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20231106\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231106\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20231106\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231106\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20231106/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20231106/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..73dcbc3 Binary files /dev/null and b/20231106/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20231106/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20231106/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..88b0875 Binary files /dev/null and b/20231106/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20231106/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20231106/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..f436de5 Binary files /dev/null and b/20231106/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20231113/BASH/asd.txt b/20231113/BASH/asd.txt new file mode 100644 index 0000000..6e3d240 --- /dev/null +++ b/20231113/BASH/asd.txt @@ -0,0 +1,4 @@ +asd +dsa +asd +dsa diff --git a/20231113/BASH/first.sh b/20231113/BASH/first.sh new file mode 100644 index 0000000..44bd1b6 --- /dev/null +++ b/20231113/BASH/first.sh @@ -0,0 +1,15 @@ +#! /bin/bash + +country=Pakistan +same_country=$country + +echo $country +echo $same_country + +echo "Today is " `date` + +echo -e "\nenter the path to directory" +read the_path + +echo -e "\nyour path has the followingfiles and folders: " +ls $the_path diff --git a/20231113/BASH/second.sh b/20231113/BASH/second.sh new file mode 100644 index 0000000..ea9dbae --- /dev/null +++ b/20231113/BASH/second.sh @@ -0,0 +1,6 @@ +#! /bin/bash + +while read line +do + echo $line +done < asd.txt diff --git a/20231113/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20231113/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..a5a8847 Binary files /dev/null and b/20231113/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20231113/ConsoleApp1/App.config b/20231113/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231113/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231113/ConsoleApp1/ConsoleApp1.csproj b/20231113/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..0807cf6 --- /dev/null +++ b/20231113/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {EADEE017-E614-4BAD-BA66-72E0610EBCD2} + Exe + ConsoleApp1 + ConsoleApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/20231113/ConsoleApp1/ConsoleApp1.sln b/20231113/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..aef2645 --- /dev/null +++ b/20231113/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{EADEE017-E614-4BAD-BA66-72E0610EBCD2}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {EADEE017-E614-4BAD-BA66-72E0610EBCD2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EADEE017-E614-4BAD-BA66-72E0610EBCD2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EADEE017-E614-4BAD-BA66-72E0610EBCD2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EADEE017-E614-4BAD-BA66-72E0610EBCD2}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {62F27EF8-64B6-4334-AF81-87EB4421BE38} + EndGlobalSection +EndGlobal diff --git a/20231113/ConsoleApp1/Program.cs b/20231113/ConsoleApp1/Program.cs new file mode 100644 index 0000000..3f3b3fe --- /dev/null +++ b/20231113/ConsoleApp1/Program.cs @@ -0,0 +1,89 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + class Szemely + { + public string Name { get; set; } + public int Age { get; set; } + + public void Kiiras() + { + Console.WriteLine($"Név: {Name}, Kor: {Age}"); + } + + } + class Adatok + { + private string[] adat; + // Konstruktor az osztály inicializálásához + public Adatok() + { + // Példányváltozó inicializálása + adat = new string[5]; + } + + public string this[int index] + { + get + { + // Ellenőrzés, hogy az index a megfelelő tartományban van-e + if (index >= 0 && index < adat.Length) + { + return adat[index]; + } else + { + return "Érvénytelen index"; + } + } + + set + { + //Ellenőrzés hogy az index a megfelelő tartományban van-e + if (index >= 0 && index < adat.Length) + { + adat[index] = value; + } + else + { + Console.WriteLine("Érvénytelen index"); + } + } + } + + } + class Program + { + static void KiirasEgyen(Szemely person) + { + Console.WriteLine("Személy adatai:"); + person.Kiiras(); + } + static void Main(string[] args) + { + Adatok elem = new Adatok(); + + elem[0] = "Első"; + elem[1] = "Második"; + elem[2] = "Harmadik"; + + Console.WriteLine(elem[0]); + Console.WriteLine(elem[1]); + Console.WriteLine(elem[2]); + Console.WriteLine(elem[5]); + + Szemely egyen = new Szemely { + Name = "Füty Imre", + Age = 12 + }; + + KiirasEgyen(egyen); + + + } + } +} diff --git a/20231113/ConsoleApp1/Properties/AssemblyInfo.cs b/20231113/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..261a83a --- /dev/null +++ b/20231113/ConsoleApp1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ConsoleApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleApp1")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("eadee017-e614-4bad-ba66-72e0610ebcd2")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20231113/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20231113/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..a7abb73 Binary files /dev/null and b/20231113/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20231113/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20231113/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231113/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231113/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20231113/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..7cddc67 Binary files /dev/null and b/20231113/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20231113/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20231113/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20231113/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20231113/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20231113/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20231113/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20231113/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20231113/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20231113/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20231113/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20231113/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..b41dfb1 --- /dev/null +++ b/20231113/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20231113\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20231113\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231113\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20231113\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20231113\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20231113\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231113\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20231113/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20231113/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..a7abb73 Binary files /dev/null and b/20231113/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20231113/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20231113/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..7cddc67 Binary files /dev/null and b/20231113/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20231113/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20231113/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..1d15bd9 Binary files /dev/null and b/20231113/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20231127/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20231127/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..208848b Binary files /dev/null and b/20231127/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20231127/ConsoleApp1/App.config b/20231127/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231127/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231127/ConsoleApp1/ConsoleApp1.csproj b/20231127/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..0e09232 --- /dev/null +++ b/20231127/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {58EF26D9-B347-41A4-9396-D748F488474D} + Exe + ConsoleApp1 + ConsoleApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/20231127/ConsoleApp1/ConsoleApp1.sln b/20231127/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..451798f --- /dev/null +++ b/20231127/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{58EF26D9-B347-41A4-9396-D748F488474D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {58EF26D9-B347-41A4-9396-D748F488474D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {58EF26D9-B347-41A4-9396-D748F488474D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {58EF26D9-B347-41A4-9396-D748F488474D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {58EF26D9-B347-41A4-9396-D748F488474D}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {2910667C-C20B-4B2C-B421-B0816125639C} + EndGlobalSection +EndGlobal diff --git a/20231127/ConsoleApp1/Program.cs b/20231127/ConsoleApp1/Program.cs new file mode 100644 index 0000000..e1e4c5b --- /dev/null +++ b/20231127/ConsoleApp1/Program.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + class Allat + { + public class Allatok + { + public void Eszik() + { + Console.WriteLine("Az állat eszik."); + } + + public void Alszik() + { + Console.WriteLine("Az állat szunyókál."); + } + } + + // leszármaztatott osztályokl amelyek öröklik az állat osztályt. + public class Kutya : Allatok + { + public void Eszik() + { + Console.WriteLine("A kutya eszik."); + } + + public void Alszik() + { + Console.WriteLine("A kutya szunyókál."); + } + public void Ugat() + { + Console.WriteLine("A kutya ugat."); + } + } + + public class Macska : Allatok + { + public void Nyavog() + { + Console.WriteLine("A macska nyávog."); + } + } + + } + class Program + { + static void Main(string[] args) + { + Allat.Allatok eger = new Allat.Allatok(); + + eger.Eszik(); + + Allat.Kutya kutya = new Allat.Kutya(); + kutya.Ugat(); + kutya.Alszik(); + + Allat.Macska macska = new Allat.Macska(); + macska.Nyavog(); + macska.Eszik(); + + + Console.ReadKey(); + } + } +} diff --git a/20231127/ConsoleApp1/Properties/AssemblyInfo.cs b/20231127/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..2976801 --- /dev/null +++ b/20231127/ConsoleApp1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ConsoleApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleApp1")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("58ef26d9-b347-41a4-9396-d748f488474d")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20231127/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20231127/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..4c5cfde Binary files /dev/null and b/20231127/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20231127/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20231127/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231127/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231127/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20231127/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..f359e84 Binary files /dev/null and b/20231127/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20231127/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20231127/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20231127/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20231127/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20231127/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20231127/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20231127/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20231127/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20231127/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20231127/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20231127/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..7e2ff78 --- /dev/null +++ b/20231127/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20231127\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20231127\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231127\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20231127\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20231127\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20231127\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231127\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20231127/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20231127/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..4c5cfde Binary files /dev/null and b/20231127/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20231127/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20231127/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..f359e84 Binary files /dev/null and b/20231127/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20231127/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20231127/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..5041dcd Binary files /dev/null and b/20231127/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/DataStructures.pdf b/DataStructures.pdf new file mode 100644 index 0000000..d0bc7d3 Binary files /dev/null and b/DataStructures.pdf differ diff --git a/allomanyok/asd.txt.txt b/allomanyok/asd.txt.txt new file mode 100644 index 0000000..b7c32ff --- /dev/null +++ b/allomanyok/asd.txt.txt @@ -0,0 +1,11 @@ +asd +asd +dsa +d wefa +D +ad +ef +eq +wd +wqd +qw \ No newline at end of file diff --git a/allomanyok/asd2.txt.txt b/allomanyok/asd2.txt.txt new file mode 100644 index 0000000..3708461 --- /dev/null +++ b/allomanyok/asd2.txt.txt @@ -0,0 +1,7 @@ +asd +sda +asd +sad +dad +sasd +a \ No newline at end of file