diff --git a/20230913_doga/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20230913_doga/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..619787a Binary files /dev/null and b/20230913_doga/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20230913_doga/ConsoleApp1/App.config b/20230913_doga/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230913_doga/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230913_doga/ConsoleApp1/ConsoleApp1.csproj b/20230913_doga/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..482f36e --- /dev/null +++ b/20230913_doga/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {BEFF2F03-9252-429D-A6C2-E7FD64D23145} + 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/20230913_doga/ConsoleApp1/ConsoleApp1.sln b/20230913_doga/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..ef5d82f --- /dev/null +++ b/20230913_doga/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", "{BEFF2F03-9252-429D-A6C2-E7FD64D23145}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BEFF2F03-9252-429D-A6C2-E7FD64D23145}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BEFF2F03-9252-429D-A6C2-E7FD64D23145}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BEFF2F03-9252-429D-A6C2-E7FD64D23145}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BEFF2F03-9252-429D-A6C2-E7FD64D23145}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {94843553-FEE7-425F-A04C-37B898764952} + EndGlobalSection +EndGlobal diff --git a/20230913_doga/ConsoleApp1/Program.cs b/20230913_doga/ConsoleApp1/Program.cs new file mode 100644 index 0000000..7552525 --- /dev/null +++ b/20230913_doga/ConsoleApp1/Program.cs @@ -0,0 +1,155 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.IO; + +namespace ConsoleApp1 +{ + class Program + { + //B csoport lottó + + static void Feladat1() + { + //1. feladat + int[] szamok = { }; + + Console.WriteLine("Add meg az 52.hét lottó számait!"); + for (int i = 0; i < 5; ++i) + { + Console.WriteLine($"Add meg az {i+1}. számot!"); + int het52 = Convert.ToInt32(Console.ReadLine()); + szamok = szamok.Append(het52).ToArray(); + } + Console.WriteLine(); + + //2. feladat + Array.Sort(szamok); + foreach (int n in szamok) + { + Console.WriteLine(n); + } + Console.WriteLine(); + + //3. feladat + Console.WriteLine("Addj meg egy számot 1-51 között!"); + int felhszam = Convert.ToInt32(Console.ReadLine()); + + //4. feladat + int paratlandb = 0; + int[,] lottoszamok = new int[51,5]; + FileStream fs = new FileStream(@"C:\Users\szabomarton\Desktop\C#\20230913_doga\lottosz.txt", FileMode.Open); + StreamReader sr = new StreamReader(fs); + + FileStream fs_2 = new FileStream(@"C:\Users\szabomarton\Desktop\C#\20230913_doga\lotto52ki.txt", FileMode.CreateNew); + StreamWriter sw = new StreamWriter(fs_2); + + for (int i = 0; i < 51; ++i) + { + string str = sr.ReadLine(); + string[] hetiszamok = str.Split(' '); + + for (int j = 0; j < hetiszamok.Length; ++j) + { + int szam = Convert.ToInt32(hetiszamok[j]); + lottoszamok[i,j] = szam; + if (szam % 2 != 0) + { + paratlandb++; + } + sw.Write($"{szam} "); + + } + sw.WriteLine(); + + } + + Console.WriteLine("A megadott heti lottószámok:"); + for (int g = 0; g < lottoszamok.GetLength(1); ++g) + { + Console.WriteLine(lottoszamok[felhszam - 1, g]); + } + + + sr.Close(); + fs.Close(); + + + //5. feladat + bool van = false; + int[] kihuzottak = { }; + + for (int i = 0; i < lottoszamok.GetLength(0); ++i) + { + for (int j = 0; j < lottoszamok.GetLength(1); ++j) + { + int szam_1 = lottoszamok[i, j]; + bool nincsbenne = !kihuzottak.Contains(szam_1); + if (nincsbenne) + { + kihuzottak = kihuzottak.Append(szam_1).ToArray(); + } + } + } + + for (int g = 1; g < 91; ++g) + { + if (!kihuzottak.Contains(g)) + { + van = true; + } + } + + if (van) + { + Console.WriteLine("Van"); + } + else + { + Console.WriteLine("Nincs"); + } + + //6.feladat + Console.WriteLine($"A páratlanok száma: {paratlandb}"); + + + //7. feladat + + + sw.WriteLine(szamok.ToString()); + sw.Close(); + fs_2.Close(); + + //8. feladat + + //9.feladat + int[] primek = { }; + for (int i = 2; i <91; ++i) + { + if (!primek.Contains(i)) + { + primek = primek.Append(i).ToArray(); + } + } + + Console.WriteLine("A prímszámok amiket nem tartalmaz: "); + for (int g = 1; g < 91; ++g) + { + if (!primek.Contains(g)) + { + Console.WriteLine(g); + } + } + + } + static void Main(string[] args) + { + Feladat1(); + Console.ReadLine(); + } + } +} + + diff --git a/20230913_doga/ConsoleApp1/Properties/AssemblyInfo.cs b/20230913_doga/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..6232191 --- /dev/null +++ b/20230913_doga/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("beff2f03-9252-429d-a6c2-e7fd64d23145")] + +// 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/20230913_doga/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20230913_doga/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..e9fbd67 Binary files /dev/null and b/20230913_doga/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20230913_doga/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20230913_doga/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230913_doga/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230913_doga/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20230913_doga/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..28a223a Binary files /dev/null and b/20230913_doga/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20230913_doga/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20230913_doga/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20230913_doga/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/20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..55701ba --- /dev/null +++ b/20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..e9fbd67 Binary files /dev/null and b/20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..28a223a Binary files /dev/null and b/20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20230913_doga/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20230913_doga/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..acd4c3f Binary files /dev/null and b/20230913_doga/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20230913_doga/DolgozatA.pdf b/20230913_doga/DolgozatA.pdf new file mode 100644 index 0000000..1b7c7cf Binary files /dev/null and b/20230913_doga/DolgozatA.pdf differ diff --git a/20230913_doga/DolgozatB.pdf b/20230913_doga/DolgozatB.pdf new file mode 100644 index 0000000..a59e081 Binary files /dev/null and b/20230913_doga/DolgozatB.pdf differ diff --git a/20230913_doga/lotto52ki.txt b/20230913_doga/lotto52ki.txt new file mode 100644 index 0000000..395a1cd --- /dev/null +++ b/20230913_doga/lotto52ki.txt @@ -0,0 +1,52 @@ +37 42 44 61 62 +18 42 54 83 89 +5 12 31 53 60 +1 28 47 56 70 +54 56 57 59 71 +7 21 33 39 86 +21 29 37 48 68 +10 21 29 40 87 +13 33 73 77 78 +2 23 65 71 84 +3 21 28 30 33 +23 31 42 73 85 +4 23 42 61 64 +17 60 66 71 85 +12 60 66 67 72 +46 50 58 62 76 +20 32 43 65 73 +55 56 58 61 71 +18 38 41 67 89 +32 41 59 66 79 +25 35 37 74 86 +1 45 60 61 82 +7 20 35 58 83 +7 37 40 46 51 +2 6 47 74 80 +1 5 22 44 88 +23 33 34 71 89 +4 56 74 77 89 +17 18 51 52 75 +7 29 30 77 80 +17 18 28 35 90 +6 24 25 53 79 +7 12 18 38 90 +25 28 45 55 74 +10 29 60 74 86 +7 24 25 50 76 +20 40 52 54 90 +16 30 81 83 87 +20 22 23 50 67 +59 68 75 80 85 +32 45 55 70 78 +13 40 55 56 76 +3 14 24 73 83 +23 25 28 66 76 +24 33 34 39 54 +12 28 34 61 70 +1 4 8 69 74 +4 15 46 49 59 +24 31 67 71 73 +12 26 36 46 49 +9 20 21 59 68 +System.Int32[] diff --git a/20230913_doga/lottosz.txt b/20230913_doga/lottosz.txt new file mode 100644 index 0000000..f83f674 --- /dev/null +++ b/20230913_doga/lottosz.txt @@ -0,0 +1,51 @@ +37 42 44 61 62 +18 42 54 83 89 +5 12 31 53 60 +1 28 47 56 70 +54 56 57 59 71 +7 21 33 39 86 +21 29 37 48 68 +10 21 29 40 87 +13 33 73 77 78 +2 23 65 71 84 +3 21 28 30 33 +23 31 42 73 85 +4 23 42 61 64 +17 60 66 71 85 +12 60 66 67 72 +46 50 58 62 76 +20 32 43 65 73 +55 56 58 61 71 +18 38 41 67 89 +32 41 59 66 79 +25 35 37 74 86 +1 45 60 61 82 +7 20 35 58 83 +7 37 40 46 51 +2 6 47 74 80 +1 5 22 44 88 +23 33 34 71 89 +4 56 74 77 89 +17 18 51 52 75 +7 29 30 77 80 +17 18 28 35 90 +6 24 25 53 79 +7 12 18 38 90 +25 28 45 55 74 +10 29 60 74 86 +7 24 25 50 76 +20 40 52 54 90 +16 30 81 83 87 +20 22 23 50 67 +59 68 75 80 85 +32 45 55 70 78 +13 40 55 56 76 +3 14 24 73 83 +23 25 28 66 76 +24 33 34 39 54 +12 28 34 61 70 +1 4 8 69 74 +4 15 46 49 59 +24 31 67 71 73 +12 26 36 46 49 +9 20 21 59 68 \ No newline at end of file diff --git a/20230920/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20230920/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..9122da8 Binary files /dev/null and b/20230920/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20230920/ConsoleApp1/App.config b/20230920/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230920/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230920/ConsoleApp1/ConsoleApp1.csproj b/20230920/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..db597a1 --- /dev/null +++ b/20230920/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {6DC513A5-2241-40C2-82DD-362B081D4D83} + 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/20230920/ConsoleApp1/ConsoleApp1.sln b/20230920/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..cfed1d9 --- /dev/null +++ b/20230920/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", "{6DC513A5-2241-40C2-82DD-362B081D4D83}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6DC513A5-2241-40C2-82DD-362B081D4D83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6DC513A5-2241-40C2-82DD-362B081D4D83}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6DC513A5-2241-40C2-82DD-362B081D4D83}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6DC513A5-2241-40C2-82DD-362B081D4D83}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {85585721-24A8-497B-8D0D-B57560614C3B} + EndGlobalSection +EndGlobal diff --git a/20230920/ConsoleApp1/Program.cs b/20230920/ConsoleApp1/Program.cs new file mode 100644 index 0000000..ea9bacc --- /dev/null +++ b/20230920/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/20230920/ConsoleApp1/Properties/AssemblyInfo.cs b/20230920/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..ce1f904 --- /dev/null +++ b/20230920/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("6dc513a5-2241-40c2-82dd-362b081d4d83")] + +// 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/20230920/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20230920/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20230920/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/20230920/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20230920/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..4eb356a Binary files /dev/null and b/20230920/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20230920/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20230920/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..42fbe6b Binary files /dev/null and b/20230920/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20230920/ConsoleApp2/.vs/ConsoleApp2/v16/.suo b/20230920/ConsoleApp2/.vs/ConsoleApp2/v16/.suo new file mode 100644 index 0000000..9f8407c Binary files /dev/null and b/20230920/ConsoleApp2/.vs/ConsoleApp2/v16/.suo differ diff --git a/20230920/ConsoleApp2/App.config b/20230920/ConsoleApp2/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230920/ConsoleApp2/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230920/ConsoleApp2/ConsoleApp2.csproj b/20230920/ConsoleApp2/ConsoleApp2.csproj new file mode 100644 index 0000000..a26306d --- /dev/null +++ b/20230920/ConsoleApp2/ConsoleApp2.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {657D5BEA-6DAF-4340-BF93-DA334436BA63} + 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/20230920/ConsoleApp2/ConsoleApp2.sln b/20230920/ConsoleApp2/ConsoleApp2.sln new file mode 100644 index 0000000..0aa8266 --- /dev/null +++ b/20230920/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", "{657D5BEA-6DAF-4340-BF93-DA334436BA63}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {657D5BEA-6DAF-4340-BF93-DA334436BA63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {657D5BEA-6DAF-4340-BF93-DA334436BA63}.Debug|Any CPU.Build.0 = Debug|Any CPU + {657D5BEA-6DAF-4340-BF93-DA334436BA63}.Release|Any CPU.ActiveCfg = Release|Any CPU + {657D5BEA-6DAF-4340-BF93-DA334436BA63}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {0B023ED5-0D1A-4DD3-B3C7-D4FD182C5F63} + EndGlobalSection +EndGlobal diff --git a/20230920/ConsoleApp2/Program.cs b/20230920/ConsoleApp2/Program.cs new file mode 100644 index 0000000..23b9f06 --- /dev/null +++ b/20230920/ConsoleApp2/Program.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Collections; +using System.IO; + +namespace ConsoleApp2 +{ + class Program + { + public static class MyData + { + public static ArrayList csaladnev = new ArrayList(); + public static ArrayList keresztnev = new ArrayList(); + public static ArrayList magassag = new ArrayList(); + public static ArrayList tomeg = new ArrayList(); + public static ArrayList nem = new ArrayList(); + } + + static void Feladat1() + { + FileStream fs = new FileStream(@"C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\bin\Debug\tanulók.txt", FileMode.Open, FileAccess.Read); + StreamReader sr = new StreamReader(fs); + string sor = sr.ReadLine(); + while (sor != null) + { + string[] temp = sor.Split(';'); + MyData.csaladnev.Add(temp[0]); + MyData.keresztnev.Add(temp[1]); + MyData.magassag.Add(Convert.ToByte(temp[2])); + MyData.tomeg.Add(Convert.ToDouble(temp[3])); + MyData.nem.Add(temp[4]); + sor = sr.ReadLine(); + } + + sr.Close(); + fs.Close(); + + foreach (string str in MyData.csaladnev) + { + Console.WriteLine(str); + } + + foreach (string str in MyData.keresztnev) + { + Console.WriteLine(str); + } + foreach (string str in MyData.magassag) + { + Console.WriteLine(str); + } + foreach (string str in MyData.tomeg) + { + Console.WriteLine(str); + } + foreach (string str in MyData.nem) + { + Console.WriteLine(str); + } + } + static void Main(string[] args) + { + Feladat1(); + Console.ReadLine(); + } + } +} diff --git a/20230920/ConsoleApp2/Properties/AssemblyInfo.cs b/20230920/ConsoleApp2/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..eaf73f8 --- /dev/null +++ b/20230920/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("657d5bea-6daf-4340-bf93-da334436ba63")] + +// 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/20230920/ConsoleApp2/bin/Debug/ConsoleApp2.exe b/20230920/ConsoleApp2/bin/Debug/ConsoleApp2.exe new file mode 100644 index 0000000..6c0c363 Binary files /dev/null and b/20230920/ConsoleApp2/bin/Debug/ConsoleApp2.exe differ diff --git a/20230920/ConsoleApp2/bin/Debug/ConsoleApp2.exe.config b/20230920/ConsoleApp2/bin/Debug/ConsoleApp2.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20230920/ConsoleApp2/bin/Debug/ConsoleApp2.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20230920/ConsoleApp2/bin/Debug/ConsoleApp2.pdb b/20230920/ConsoleApp2/bin/Debug/ConsoleApp2.pdb new file mode 100644 index 0000000..44cf3d7 Binary files /dev/null and b/20230920/ConsoleApp2/bin/Debug/ConsoleApp2.pdb differ diff --git a/20230920/ConsoleApp2/bin/Debug/tanulok2.txt b/20230920/ConsoleApp2/bin/Debug/tanulok2.txt new file mode 100644 index 0000000..b4f499e --- /dev/null +++ b/20230920/ConsoleApp2/bin/Debug/tanulok2.txt @@ -0,0 +1,8 @@ +Verebes Fruzsina 149 54,4 lány +Verebes Fruzsina 149 54,4 lány +Verebes Fruzsina 149 54,4 lány +Verebes Fruzsina 149 54,4 lány +Verebes Fruzsina 149 54,4 lány +Verebes Fruzsina 149 54,4 lány +Verebes Fruzsina 149 54,4 lány +Verebes Fruzsina 149 54,4 lány \ No newline at end of file diff --git a/20230920/ConsoleApp2/bin/Debug/tanulók.txt b/20230920/ConsoleApp2/bin/Debug/tanulók.txt new file mode 100644 index 0000000..86a4560 --- /dev/null +++ b/20230920/ConsoleApp2/bin/Debug/tanulók.txt @@ -0,0 +1,100 @@ +Verebes;Fruzsina;149;54,4;lány +Borsodi;Attila;167;51,1;fiú +Major;Liza;155;52;lány +Varga;Ernő;173;46,5;fiú +Lendvai;Vera;165;46,7;lány +Kulcsár;Antal;172;55,7;fiú +Petróczi;Virág;169;41,3;lány +Pais;Károly;155;55,5;fiú +Horváth;Adél;157;56,5;lány +Kiss;Balázs;163;54,5;fiú +Orosz;Ingrid;172;41,9;lány +Pelikán;Tamás;172;48,9;fiú +Zalai;Elvira;147;57,4;lány +Papp;Lilla;169;56;lány +Huszár;Dorina;151;48,1;lány +Kiss;Krisztián;145;59,3;fiú +Sipos;Zsolt;173;57,6;fiú +Pongrácz;Karina;175;42,1;lány +Vissi;Klaudia;166;59;lány +Gellén;Bea;188;47,9;lány +Ferencz;Ivett;171;51;lány +Ujj;Mihály;188;55,6;fiú +Kovács;Gergely;147;42;fiú +Felföldi;Judit;145;52,3;lány +Bartal;Zsolt;169;49,9;fiú +Simon;Erik;171;46,7;fiú +Csiszár;Alexandra;170;52,8;lány +Pesti;Milán;188;53,3;fiú +Simon;Rita;166;46;lány +Somogyi;Dezső;177;46,3;fiú +Magyar;Magdolna;150;56,8;lány +Gombos;Kinga;149;56,7;lány +Egerszegi;Kristóf;162;52,2;fiú +Somogyi;Tamás;172;59,7;fiú +Varga;Anna;188;58,3;lány +Csondor;Anikó;159;45,3;lány +Vass;Szabolcs;188;54,2;fiú +Szabó;Csilla;163;59,6;lány +Pass;Flóra;177;45,6;lány +Agg;Judit;145;51,1;lány +Gyenese;Oszkár;157;43;fiú +Hardi;Boglárka;159;60;lány +Kuti;Lehel;163;53,8;fiú +Domján;Hermina;165;41,3;lány +Tompa;Krisztina;172;51,9;lány +Radics;Betti;171;42,9;lány +Balla;Ibolya;180;43;lány +Csontos;Janka;151;56,2;lány +Radics;Zsuzsa;159;46,4;lány +Vajda;Klára;172;41,9;lány +Simon;Marcell;171;46,6;fiú +Salamon;Laura;162;48,3;lány +Bakony;Ilona;145;46,7;lány +Hantos;Bence;147;59;fiú +Kovács;Erika;167;59,6;lány +Csiszár;Bella;168;48,6;lány +Simon;Dorina;169;46,3;lány +Bicsák;Hilda;173;44;lány +Varga;Rozália;156;44,1;lány +Lengyel;Viktor;188;53,3;fiú +Molnár;Zsombor;172;48,8;fiú +Hajba;Soma;178;48,8;fiú +Bocskor;Henrik;154;54,5;fiú +Hajdu;Szilvia;157;47,2;lány +Csalló;Aliz;159;53;lány +Kelemen;Gergő;163;44,9;fiú +Kaczor;Jenő;167;44,5;fiú +Bujtor;Erzsébet;167;52,1;lány +Gombos;Olivér;168;42,5;fiú +Varga;Cili;172;49,7;lány +Gulyás;Katalin;171;58,2;lány +Vass;Vera;155;46;lány +Salamon;András;177;55,9;fiú +Elekes;Elza;177;48,2;lány +Nagy;Melinda;145;46,5;lány +Kovács;Vivien;160;58,5;lány +Kaszás;Ferenc;149;53;fiú +Balogh;Borbála;166;52,9;lány +Horváth;Barbara;153;49,1;lány +Dobos;Vilma;180;42,9;lány +Nagy;Miklós;156;51,7;fiú +Kovács;Ambrus;173;54,2;fiú +Paksa;Csilla;141;58,4;lány +Bende;Natália;145;56,9;lány +Czigány;Judit;161;41,4;lány +Simon;Edina;167;51,3;lány +Monok;Gabriella;168;58,4;lány +Jakab;Etelka;169;49,2;lány +Vig;Viola;159;53,9;lány +Szegleti;Tamás;160;50,5;fiú +Pataki;Viktória;149;50,8;lány +Vass;Ildikó;171;49,8;lány +Farsang;Jakab;168;47,7;fiú +Vajda;István;163;48,7;fiú +Marosvári;Krisztina;162;46,1;lány +Horváth;Kamilla;159;42,1;lány +Koller;Tamás;171;45,6;fiú +Kocsis;Tamara;170;59,6;lány +Molnár;Vera;155;42,2;lány +Hegyi;Csaba;152;48,4;fiú \ No newline at end of file diff --git a/20230920/ConsoleApp2/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20230920/ConsoleApp2/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20230920/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/20230920/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.AssemblyReference.cache b/20230920/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20230920/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.AssemblyReference.cache differ diff --git a/20230920/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.CoreCompileInputs.cache b/20230920/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20230920/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20230920/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.FileListAbsolute.txt b/20230920/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..4bb9779 --- /dev/null +++ b/20230920/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\bin\Debug\ConsoleApp2.exe.config +C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\bin\Debug\ConsoleApp2.exe +C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\bin\Debug\ConsoleApp2.pdb +C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\obj\Debug\ConsoleApp2.exe +C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\obj\Debug\ConsoleApp2.pdb diff --git a/20230920/ConsoleApp2/obj/Debug/ConsoleApp2.exe b/20230920/ConsoleApp2/obj/Debug/ConsoleApp2.exe new file mode 100644 index 0000000..6c0c363 Binary files /dev/null and b/20230920/ConsoleApp2/obj/Debug/ConsoleApp2.exe differ diff --git a/20230920/ConsoleApp2/obj/Debug/ConsoleApp2.pdb b/20230920/ConsoleApp2/obj/Debug/ConsoleApp2.pdb new file mode 100644 index 0000000..44cf3d7 Binary files /dev/null and b/20230920/ConsoleApp2/obj/Debug/ConsoleApp2.pdb differ diff --git a/20230920/ConsoleApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20230920/ConsoleApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..e148318 Binary files /dev/null and b/20230920/ConsoleApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20231011/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20231011/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..ffc27ba Binary files /dev/null and b/20231011/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20231011/ConsoleApp1/App.config b/20231011/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231011/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231011/ConsoleApp1/ConsoleApp1.csproj b/20231011/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..ead2c6d --- /dev/null +++ b/20231011/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {37CB7692-799A-49D7-9365-3F1F7A29F4A2} + 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/20231011/ConsoleApp1/ConsoleApp1.sln b/20231011/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..cd91569 --- /dev/null +++ b/20231011/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", "{37CB7692-799A-49D7-9365-3F1F7A29F4A2}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {37CB7692-799A-49D7-9365-3F1F7A29F4A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {37CB7692-799A-49D7-9365-3F1F7A29F4A2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {37CB7692-799A-49D7-9365-3F1F7A29F4A2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {37CB7692-799A-49D7-9365-3F1F7A29F4A2}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {74441948-646F-4654-A6E8-C42946C62E66} + EndGlobalSection +EndGlobal diff --git a/20231011/ConsoleApp1/Program.cs b/20231011/ConsoleApp1/Program.cs new file mode 100644 index 0000000..0df537d --- /dev/null +++ b/20231011/ConsoleApp1/Program.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + abstract class Jarmu + { + public string Marka { get; set; } + public int Ev { get; set; } + public abstract void Vezeto(); + } + + class Auto : Jarmu + { + public int loero { get; set; } + + public override void Vezeto() + { + Console.WriteLine($"Az autó vezetés: {Marka}, Ev: {Ev}, loero: {loero}"); + } + } + + class Kerekpar : Jarmu + { + public int Sebesseg { get; set; } + public override void Vezeto() + { + Console.WriteLine($"Kerékpározás: {Marka}, Ev: {Ev}, Sebesseg: {Sebesseg}"); + } + } + class Program + { + static void Main(string[] args) + { + Auto auto1 = new Auto { Marka = "Suzuki", Ev = 2002, loero = 997 }; + auto1.Vezeto(); + Kerekpar kero = new Kerekpar { Marka = "Csepel", Ev = 2020, Sebesseg = 5 }; + kero.Vezeto(); + Console.ReadLine(); + } + } +} diff --git a/20231011/ConsoleApp1/Properties/AssemblyInfo.cs b/20231011/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..ac4302f --- /dev/null +++ b/20231011/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("37cb7692-799a-49d7-9365-3f1f7a29f4a2")] + +// 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/20231011/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20231011/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..2c13679 Binary files /dev/null and b/20231011/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20231011/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20231011/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231011/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231011/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20231011/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..5e562ba Binary files /dev/null and b/20231011/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20231011/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20231011/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20231011/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/20231011/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20231011/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20231011/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20231011/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20231011/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20231011/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20231011/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20231011/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..a1f45ff --- /dev/null +++ b/20231011/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20231011/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20231011/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..2c13679 Binary files /dev/null and b/20231011/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20231011/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20231011/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..5e562ba Binary files /dev/null and b/20231011/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20231011/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20231011/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..815c33e Binary files /dev/null and b/20231011/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20231018/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20231018/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..ea384c8 Binary files /dev/null and b/20231018/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20231018/ConsoleApp1/App.config b/20231018/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231018/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231018/ConsoleApp1/ConsoleApp1.csproj b/20231018/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..3e9e865 --- /dev/null +++ b/20231018/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {C3708B4F-6B02-49FA-8D23-EE80F619CAA2} + 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/20231018/ConsoleApp1/ConsoleApp1.sln b/20231018/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..164798e --- /dev/null +++ b/20231018/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", "{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C3708B4F-6B02-49FA-8D23-EE80F619CAA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C3708B4F-6B02-49FA-8D23-EE80F619CAA2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C3708B4F-6B02-49FA-8D23-EE80F619CAA2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C3708B4F-6B02-49FA-8D23-EE80F619CAA2}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {ED5FDD19-880A-41F5-84D7-4C554147E0E4} + EndGlobalSection +EndGlobal diff --git a/20231018/ConsoleApp1/Program.cs b/20231018/ConsoleApp1/Program.cs new file mode 100644 index 0000000..27319f3 --- /dev/null +++ b/20231018/ConsoleApp1/Program.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + class Osztaly + { + private static int peldanyokszama = 0; + public Osztaly() + { + peldanyokszama++; + } + + public static int Peldanyszam() + { + return peldanyokszama; + } + ~Osztaly() + { + Console.WriteLine(Peldanyszam()); + } + + } + class Program + { + static void Main(string[] args) + { + Osztaly objektum = new Osztaly(); + Console.WriteLine(Osztaly.Peldanyszam()); + Osztaly obj = new Osztaly(); + Osztaly obj2 = new Osztaly(); + } + } +} diff --git a/20231018/ConsoleApp1/Properties/AssemblyInfo.cs b/20231018/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..f168299 --- /dev/null +++ b/20231018/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("c3708b4f-6b02-49fa-8d23-ee80f619caa2")] + +// 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/20231018/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20231018/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..ed8c479 Binary files /dev/null and b/20231018/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20231018/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20231018/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231018/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231018/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20231018/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..c897558 Binary files /dev/null and b/20231018/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20231018/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20231018/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20231018/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/20231018/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20231018/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20231018/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20231018/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20231018/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20231018/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20231018/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20231018/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..525c31f --- /dev/null +++ b/20231018/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20231018/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20231018/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..ed8c479 Binary files /dev/null and b/20231018/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20231018/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20231018/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..c897558 Binary files /dev/null and b/20231018/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20231018/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20231018/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..88c05b2 Binary files /dev/null and b/20231018/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20231018/ConsoleApp2/.vs/ConsoleApp2/v16/.suo b/20231018/ConsoleApp2/.vs/ConsoleApp2/v16/.suo new file mode 100644 index 0000000..5cb2ba6 Binary files /dev/null and b/20231018/ConsoleApp2/.vs/ConsoleApp2/v16/.suo differ diff --git a/20231018/ConsoleApp2/App.config b/20231018/ConsoleApp2/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231018/ConsoleApp2/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231018/ConsoleApp2/ConsoleApp2.csproj b/20231018/ConsoleApp2/ConsoleApp2.csproj new file mode 100644 index 0000000..b723845 --- /dev/null +++ b/20231018/ConsoleApp2/ConsoleApp2.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {2EFD125E-5061-411B-8CFA-ACC21FA5265D} + 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/20231018/ConsoleApp2/ConsoleApp2.sln b/20231018/ConsoleApp2/ConsoleApp2.sln new file mode 100644 index 0000000..c4e448a --- /dev/null +++ b/20231018/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", "{2EFD125E-5061-411B-8CFA-ACC21FA5265D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2EFD125E-5061-411B-8CFA-ACC21FA5265D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2EFD125E-5061-411B-8CFA-ACC21FA5265D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2EFD125E-5061-411B-8CFA-ACC21FA5265D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2EFD125E-5061-411B-8CFA-ACC21FA5265D}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {05B69EA5-EF15-465D-9054-21CF1635B5F4} + EndGlobalSection +EndGlobal diff --git a/20231018/ConsoleApp2/Program.cs b/20231018/ConsoleApp2/Program.cs new file mode 100644 index 0000000..81f30bb --- /dev/null +++ b/20231018/ConsoleApp2/Program.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp2 +{ + public static class Intkiterjesztesek + { + public static int Factorial(this int szam) + { + if (szam < 0) { + throw new ArgumentException("A negatív számoknak nincs faktoriálisa"); + } + + if (szam == 0 || szam == 1) + { + return 1; + } + + int result = 1; + for (int i = 2; i <= szam; ++i) { + result *= i; + } + return result; + } + } + class Program + { + + static void Main(string[] args) + { + int szam = 5; + int factorial = szam.Factorial(); + Console.WriteLine($"{szam}! = {factorial}"); + } + } +} diff --git a/20231018/ConsoleApp2/Properties/AssemblyInfo.cs b/20231018/ConsoleApp2/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..49cdebf --- /dev/null +++ b/20231018/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("2efd125e-5061-411b-8cfa-acc21fa5265d")] + +// 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/20231018/ConsoleApp2/bin/Debug/ConsoleApp2.exe b/20231018/ConsoleApp2/bin/Debug/ConsoleApp2.exe new file mode 100644 index 0000000..e4c4ce5 Binary files /dev/null and b/20231018/ConsoleApp2/bin/Debug/ConsoleApp2.exe differ diff --git a/20231018/ConsoleApp2/bin/Debug/ConsoleApp2.exe.config b/20231018/ConsoleApp2/bin/Debug/ConsoleApp2.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231018/ConsoleApp2/bin/Debug/ConsoleApp2.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231018/ConsoleApp2/bin/Debug/ConsoleApp2.pdb b/20231018/ConsoleApp2/bin/Debug/ConsoleApp2.pdb new file mode 100644 index 0000000..66758c3 Binary files /dev/null and b/20231018/ConsoleApp2/bin/Debug/ConsoleApp2.pdb differ diff --git a/20231018/ConsoleApp2/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20231018/ConsoleApp2/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20231018/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/20231018/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.AssemblyReference.cache b/20231018/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.AssemblyReference.cache new file mode 100644 index 0000000..4eb356a Binary files /dev/null and b/20231018/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.AssemblyReference.cache differ diff --git a/20231018/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.CoreCompileInputs.cache b/20231018/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20231018/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20231018/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.FileListAbsolute.txt b/20231018/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..cd03c5f --- /dev/null +++ b/20231018/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\bin\Debug\ConsoleApp2.exe.config +C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\bin\Debug\ConsoleApp2.exe +C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\bin\Debug\ConsoleApp2.pdb +C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\obj\Debug\ConsoleApp2.exe +C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\obj\Debug\ConsoleApp2.pdb diff --git a/20231018/ConsoleApp2/obj/Debug/ConsoleApp2.exe b/20231018/ConsoleApp2/obj/Debug/ConsoleApp2.exe new file mode 100644 index 0000000..e4c4ce5 Binary files /dev/null and b/20231018/ConsoleApp2/obj/Debug/ConsoleApp2.exe differ diff --git a/20231018/ConsoleApp2/obj/Debug/ConsoleApp2.pdb b/20231018/ConsoleApp2/obj/Debug/ConsoleApp2.pdb new file mode 100644 index 0000000..66758c3 Binary files /dev/null and b/20231018/ConsoleApp2/obj/Debug/ConsoleApp2.pdb differ diff --git a/20231018/ConsoleApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20231018/ConsoleApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..60dd226 Binary files /dev/null and b/20231018/ConsoleApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20231025/orai.txt b/20231025/orai.txt new file mode 100644 index 0000000..6fb6564 --- /dev/null +++ b/20231025/orai.txt @@ -0,0 +1,48 @@ +public static típus függénynév(this típus név, tov.paraméterek){ +függvénytörzs; +}; +Az így defininált függvény + + +public static class Intkiterjesztesek + { + public static int Factorial(this int szam) + { + if (szam < 0) { + throw new ArgumentException("A negatív számoknak nincs faktoriálisa"); + } + + if (szam == 0 || szam == 1) + { + return 1; + } + + int result = 1; + for (int i = 2; i <= szam; ++i) { + result *= i; + } + return result; + } + } + class Program + { + + static void Main(string[] args) + { + int szam = 5; + int factorial = szam.Factorial(); + Console.WriteLine($"{szam}! = {factorial}"); + } + } + + + + + +A this kulcsszó használatával a függvénykiterjesztésekben az objektum, amelyre alkalmazni szeretnénk a kiterjesztett metódust, paraméterként jut át a metódusnak. +Ez a példa egy egyszerű függvénykiterjesztés az int típushoz, amely a szám faktoriálisát számítja ki. + +A throw kulcsszót a hiba vagy kivétel dobása céljából használhatunk. +Amikor egy kivételt dobunk akkor valamilyen előre definiált kivételosztály egy példányát kaphatjuk vissza, vagy saját magunk által definiált kivételosztály. + +A throw tehát lehetővé teszi számunkra, hogy megállítsuk a program futását és jelezzük, hogy valamilyen probléma vagy kivlételes helyzet áll fennm amely kezelést igényel. diff --git a/20231115/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20231115/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..e182733 Binary files /dev/null and b/20231115/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20231115/ConsoleApp1/App.config b/20231115/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231115/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231115/ConsoleApp1/ConsoleApp1.csproj b/20231115/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..686cca1 --- /dev/null +++ b/20231115/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {F1939277-923D-4841-B3CD-C9C3B4FFC17B} + 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/20231115/ConsoleApp1/ConsoleApp1.sln b/20231115/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..7c79384 --- /dev/null +++ b/20231115/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", "{F1939277-923D-4841-B3CD-C9C3B4FFC17B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F1939277-923D-4841-B3CD-C9C3B4FFC17B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F1939277-923D-4841-B3CD-C9C3B4FFC17B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F1939277-923D-4841-B3CD-C9C3B4FFC17B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F1939277-923D-4841-B3CD-C9C3B4FFC17B}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4C37CA09-2E20-4F4F-8F81-601E005623D1} + EndGlobalSection +EndGlobal diff --git a/20231115/ConsoleApp1/Program.cs b/20231115/ConsoleApp1/Program.cs new file mode 100644 index 0000000..9937626 --- /dev/null +++ b/20231115/ConsoleApp1/Program.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + class Szamolo + { + public double operand1, operand2; + public Szamolo(double operand1, double operand2) + { + this.operand1 = operand1; + this.operand2 = operand2; + } + public double Kalk(char operatorCode) + { + switch (operatorCode) + { + case '+': + return operand1 + operand2; + break; + case '-': + return operand1 - operand2; + break; + case '*': + return operand1 * operand2; + break; + case '/': + if (operand2 != 0) + { + return operand1 / operand2; + } else + { + throw new DivideByZeroException("Ne osszá nullával!"); + } + break; + default: + break; + + } + + return 0; + } + } + class Program + { + static void Main(string[] args) + { + Console.WriteLine("Adja meg az első operandust!"); + double op1 = Convert.ToDouble(Console.ReadLine()); + Console.WriteLine("Adja meg a második operandust!"); + double op2 = Convert.ToDouble(Console.ReadLine()); + Console.WriteLine("Add meg a műveletet!"); + char muvelet = Convert.ToChar(Console.ReadLine()); + + Szamolo szamol = new Szamolo(op1, op2); + + try + { + double er = szamol.Kalk(muvelet); + Console.WriteLine(er); + } + catch (Exception) + { + + throw; + } + + } + } +} diff --git a/20231115/ConsoleApp1/Properties/AssemblyInfo.cs b/20231115/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..976c9ff --- /dev/null +++ b/20231115/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("f1939277-923d-4841-b3cd-c9c3b4ffc17b")] + +// 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/20231115/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20231115/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..f549fe0 Binary files /dev/null and b/20231115/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20231115/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20231115/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231115/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231115/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20231115/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..b6d7d58 Binary files /dev/null and b/20231115/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20231115/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20231115/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20231115/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/20231115/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20231115/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..4eb356a Binary files /dev/null and b/20231115/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20231115/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20231115/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20231115/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20231115/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20231115/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..011e276 --- /dev/null +++ b/20231115/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20231115/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20231115/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..f549fe0 Binary files /dev/null and b/20231115/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20231115/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20231115/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..b6d7d58 Binary files /dev/null and b/20231115/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20231115/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20231115/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..76d09e6 Binary files /dev/null and b/20231115/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20231115/ConsoleApp2/.vs/ConsoleApp2/v16/.suo b/20231115/ConsoleApp2/.vs/ConsoleApp2/v16/.suo new file mode 100644 index 0000000..559b68c Binary files /dev/null and b/20231115/ConsoleApp2/.vs/ConsoleApp2/v16/.suo differ diff --git a/20231115/ConsoleApp2/App.config b/20231115/ConsoleApp2/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231115/ConsoleApp2/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231115/ConsoleApp2/ConsoleApp2.csproj b/20231115/ConsoleApp2/ConsoleApp2.csproj new file mode 100644 index 0000000..74f6c64 --- /dev/null +++ b/20231115/ConsoleApp2/ConsoleApp2.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73} + 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/20231115/ConsoleApp2/ConsoleApp2.sln b/20231115/ConsoleApp2/ConsoleApp2.sln new file mode 100644 index 0000000..57e913a --- /dev/null +++ b/20231115/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", "{CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {25B8FF27-DF2A-4B5A-AA97-13639132CF77} + EndGlobalSection +EndGlobal diff --git a/20231115/ConsoleApp2/Program.cs b/20231115/ConsoleApp2/Program.cs new file mode 100644 index 0000000..2c8e6d9 --- /dev/null +++ b/20231115/ConsoleApp2/Program.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp2 +{ + class Lakas + { + double szelesseg, hossz, magassag; + int csempe; + + double padlo, Aoldal, Boldal; + public Lakas(double szelesseg, double hossz, double magassag) + { + padlo = szelesseg * hossz; + Aoldal = hossz * magassag; + Boldal = magassag * szelesseg; + } + + double csempeA, csempeB; + public Csempemeret() + { + + } + + + } + class Program + { + static void Main(string[] args) + { + } + } +} diff --git a/20231115/ConsoleApp2/Properties/AssemblyInfo.cs b/20231115/ConsoleApp2/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..380f2cf --- /dev/null +++ b/20231115/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("cadf71ae-eefc-4af1-a8b7-ad080cf7bd73")] + +// 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/20231115/ConsoleApp2/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20231115/ConsoleApp2/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20231115/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/20231115/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.AssemblyReference.cache b/20231115/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.AssemblyReference.cache new file mode 100644 index 0000000..4eb356a Binary files /dev/null and b/20231115/ConsoleApp2/obj/Debug/ConsoleApp2.csproj.AssemblyReference.cache differ diff --git a/20231115/ConsoleApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20231115/ConsoleApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..eea3502 Binary files /dev/null and b/20231115/ConsoleApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20231115/feladat.txt b/20231115/feladat.txt new file mode 100644 index 0000000..259a553 --- /dev/null +++ b/20231115/feladat.txt @@ -0,0 +1,12 @@ +Készítsünk számológépet: +A Szamolo osztály tartalmazzon egy Kalk metódust, +amely adott műveleti kódra elvégzi a két operandus között a megfelelő műveletet. +A kalk metódus az adatokat az osztály adattagjaiból vegye; +ezeket a főprogram közvetlenül érje el. +A főprogram készítsén ebből egy Kiszamol példányt, kérjen be két operanmdust és egy műveleti kódot, végeztesse el a műveletet, majd írja ki az eredményt. + + + +Készítsen osztályt amely lakóhelyiségek alapterületét, falfelületét és a mennyezet méretét számolja ki a helyiség hossza szélessége és belmagassága alapján. +Az osztály tesztelésként kérje be hány helyiségbe szeretne az illető csempézni és festeni, majd kérd be a helyiségek adatait. +Végül adja meg, hogy mennyi csempére és falfestékre lesz szükség. diff --git a/20231129/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20231129/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..778f2c5 Binary files /dev/null and b/20231129/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20231129/ConsoleApp1/App.config b/20231129/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231129/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231129/ConsoleApp1/ConsoleApp1.csproj b/20231129/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..f6d4679 --- /dev/null +++ b/20231129/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {B6DF9AD0-30C9-4B67-A782-EC20DE270E30} + 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/20231129/ConsoleApp1/ConsoleApp1.sln b/20231129/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..5372e0b --- /dev/null +++ b/20231129/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", "{B6DF9AD0-30C9-4B67-A782-EC20DE270E30}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B6DF9AD0-30C9-4B67-A782-EC20DE270E30}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B6DF9AD0-30C9-4B67-A782-EC20DE270E30}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B6DF9AD0-30C9-4B67-A782-EC20DE270E30}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B6DF9AD0-30C9-4B67-A782-EC20DE270E30}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {06955B28-9CD1-4AA1-BF0D-95D7E966C0F9} + EndGlobalSection +EndGlobal diff --git a/20231129/ConsoleApp1/Program.cs b/20231129/ConsoleApp1/Program.cs new file mode 100644 index 0000000..8e62562 --- /dev/null +++ b/20231129/ConsoleApp1/Program.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + public class Alak + { + public virtual void Rajzol() { + Console.WriteLine("Alakzat rajzolása."); + } + } + + public class Kor : Alak + { + public override void Rajzol() + { + Console.WriteLine("Kör rajzolása."); + } + } + + public class Kocka : Alak + { + public override void Rajzol() + { + Console.WriteLine("Téglalap rajzolása."); + + Console.WriteLine(" .+------+ +------+ "); + Console.WriteLine(" .' | .' | /| /| "); + Console.WriteLine("+---+--+' | +-+----+ | "); + Console.WriteLine("| | | | | | | | "); + Console.WriteLine("| ,+--+---+ | +----+-+ "); + Console.WriteLine("|.' | .' |/ |/ "); + Console.WriteLine("+------+' +------+ "); + } + } + class Program + { + static void Main(string[] args) + { + Alak haromszog = new Alak(); + haromszog.Rajzol(); + Kocka teglalap = new Kocka(); + teglalap.Rajzol(); + Console.ReadLine(); + } + } +} diff --git a/20231129/ConsoleApp1/Properties/AssemblyInfo.cs b/20231129/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..67824a2 --- /dev/null +++ b/20231129/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("b6df9ad0-30c9-4b67-a782-ec20de270e30")] + +// 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/20231129/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20231129/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..49447b7 Binary files /dev/null and b/20231129/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20231129/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20231129/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231129/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231129/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20231129/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..66660e4 Binary files /dev/null and b/20231129/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20231129/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20231129/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20231129/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/20231129/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20231129/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20231129/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20231129/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20231129/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20231129/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20231129/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20231129/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..f2cc79d --- /dev/null +++ b/20231129/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20231129/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20231129/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..49447b7 Binary files /dev/null and b/20231129/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20231129/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20231129/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..66660e4 Binary files /dev/null and b/20231129/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20231129/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20231129/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..3fcd8f0 Binary files /dev/null and b/20231129/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20231129/ConsoleApp2/.vs/ConsoleApp2/v16/.suo b/20231129/ConsoleApp2/.vs/ConsoleApp2/v16/.suo new file mode 100644 index 0000000..0b75b12 Binary files /dev/null and b/20231129/ConsoleApp2/.vs/ConsoleApp2/v16/.suo differ diff --git a/20231129/ConsoleApp2/App.config b/20231129/ConsoleApp2/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231129/ConsoleApp2/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231129/ConsoleApp2/ConsoleApp2.csproj b/20231129/ConsoleApp2/ConsoleApp2.csproj new file mode 100644 index 0000000..dd9fa09 --- /dev/null +++ b/20231129/ConsoleApp2/ConsoleApp2.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {8680F023-48A1-4B35-A2FE-CA763D4310F6} + 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/20231129/ConsoleApp2/ConsoleApp2.sln b/20231129/ConsoleApp2/ConsoleApp2.sln new file mode 100644 index 0000000..4375c48 --- /dev/null +++ b/20231129/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", "{8680F023-48A1-4B35-A2FE-CA763D4310F6}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8680F023-48A1-4B35-A2FE-CA763D4310F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8680F023-48A1-4B35-A2FE-CA763D4310F6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8680F023-48A1-4B35-A2FE-CA763D4310F6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8680F023-48A1-4B35-A2FE-CA763D4310F6}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {976941A2-2FA9-4061-8DB9-3B2839BD04D1} + EndGlobalSection +EndGlobal diff --git a/20231129/ConsoleApp2/Program.cs b/20231129/ConsoleApp2/Program.cs new file mode 100644 index 0000000..5939010 --- /dev/null +++ b/20231129/ConsoleApp2/Program.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp2 +{ + + public class Sim + { + public static int RandomNumber(int min, int max) + { + Random random = new Random(); + return random.Next(min, max); + } + + //int sorszam, PIN, PUK, egyenleg; + int sorszam = RandomNumber(10000000,100000000); + int PIN = RandomNumber(1000,10000); + int PUK = 1; + + + + bool ervenyes; + + + + + } + class Program + { + static void Main(string[] args) + { + } + } +} diff --git a/20231129/ConsoleApp2/Properties/AssemblyInfo.cs b/20231129/ConsoleApp2/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0b63b0c --- /dev/null +++ b/20231129/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("8680f023-48a1-4b35-a2fe-ca763d4310f6")] + +// 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/20231129/ConsoleApp2/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20231129/ConsoleApp2/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20231129/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/20231129/ConsoleApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20231129/ConsoleApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..540e140 Binary files /dev/null and b/20231129/ConsoleApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ