diff --git a/20231211/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20231211/ConsoleApp1/.vs/ConsoleApp1/v16/.suo index bf0e838..487a511 100644 Binary files a/20231211/ConsoleApp1/.vs/ConsoleApp1/v16/.suo and b/20231211/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20231215/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20231215/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..846b2ad Binary files /dev/null and b/20231215/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20231215/ConsoleApp1/App.config b/20231215/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231215/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231215/ConsoleApp1/ConsoleApp1.csproj b/20231215/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..ef9ff05 --- /dev/null +++ b/20231215/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {A187CE3D-2CF6-4B9A-AF4B-639676840A86} + 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/20231215/ConsoleApp1/ConsoleApp1.sln b/20231215/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..33978b7 --- /dev/null +++ b/20231215/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", "{A187CE3D-2CF6-4B9A-AF4B-639676840A86}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A187CE3D-2CF6-4B9A-AF4B-639676840A86}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A187CE3D-2CF6-4B9A-AF4B-639676840A86}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A187CE3D-2CF6-4B9A-AF4B-639676840A86}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A187CE3D-2CF6-4B9A-AF4B-639676840A86}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4BB510E9-80AA-4833-81E2-F3B6E87D6360} + EndGlobalSection +EndGlobal diff --git a/20231215/ConsoleApp1/Program.cs b/20231215/ConsoleApp1/Program.cs new file mode 100644 index 0000000..e8138a6 --- /dev/null +++ b/20231215/ConsoleApp1/Program.cs @@ -0,0 +1,92 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + class Tanulo + { + public string nev; + public List matek = new List(); + public List tortenelem = new List(); + public List angol = new List(); + public List tesi = new List(); + public List nyelvtan = new List(); + + + public string Nev + { + get { return this.nev; } + set { this.nev = value;} + } + + public double Atlag(List l) + { + return l.Average(); + } + + public void Jegyek(List l) + { + Console.WriteLine("A jegyeid az adott tantárgyból:"); + foreach (int i in l) + { + Console.WriteLine(i); + } + Console.WriteLine(""); + } + + public void JegyAdd(string tantargy, int j) + { + if (tantargy == "matek") + { + matek.Add(j); + } + else if (tantargy == "tori") + { + tortenelem.Add(j); + } + else if (tantargy == "tesi") + { + tesi.Add(j); + } + else if (tantargy == "angol") + { + angol.Add(j); + } + else if (tantargy == "nyelvtan") + { + nyelvtan.Add(j); + } + } + + public Tanulo(string n) + { + Nev = n; + } + } + class Program + { + static void Main(string[] args) + { + Tanulo digi = new Tanulo("Szabó Márton"); + digi.JegyAdd("matek", 5); + digi.JegyAdd("matek", 5); + digi.JegyAdd("matek", 5); + digi.JegyAdd("matek", 5); + + digi.JegyAdd("nyelvtan", 5); + digi.JegyAdd("nyelvtan", 4); + Console.WriteLine($"A tantárgy átlaga: {digi.Atlag(digi.nyelvtan)}"); + digi.Jegyek(digi.matek); + Console.WriteLine(digi.Nev); + + Tanulo asd = new Tanulo("Asd"); + Console.WriteLine(asd.Nev); + asd.JegyAdd("tori", 3); + Console.WriteLine($"A tantárgy átlaga: {asd.Atlag(asd.tortenelem)}"); + asd.Jegyek(asd.tortenelem); + } + } +} diff --git a/20231215/ConsoleApp1/Properties/AssemblyInfo.cs b/20231215/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..9096593 --- /dev/null +++ b/20231215/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("a187ce3d-2cf6-4b9a-af4b-639676840a86")] + +// 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/20231215/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20231215/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..e4df233 Binary files /dev/null and b/20231215/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20231215/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20231215/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231215/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231215/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20231215/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..2c99879 Binary files /dev/null and b/20231215/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20231215/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20231215/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20231215/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/20231215/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20231215/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20231215/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20231215/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20231215/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20231215/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20231215/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20231215/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..4c6b4d7 --- /dev/null +++ b/20231215/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20231215\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20231215\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231215\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\20231215\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20231215\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20231215\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\20231215\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20231215/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20231215/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..e4df233 Binary files /dev/null and b/20231215/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20231215/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20231215/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..2c99879 Binary files /dev/null and b/20231215/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20231215/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20231215/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..17f5910 Binary files /dev/null and b/20231215/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20231215/Zenelejatszo/.vs/Zenelejatszo/v16/.suo b/20231215/Zenelejatszo/.vs/Zenelejatszo/v16/.suo new file mode 100644 index 0000000..cc61a87 Binary files /dev/null and b/20231215/Zenelejatszo/.vs/Zenelejatszo/v16/.suo differ diff --git a/20231215/Zenelejatszo/App.config b/20231215/Zenelejatszo/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231215/Zenelejatszo/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231215/Zenelejatszo/Program.cs b/20231215/Zenelejatszo/Program.cs new file mode 100644 index 0000000..30d2ac6 --- /dev/null +++ b/20231215/Zenelejatszo/Program.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Zenelejatszo +{ + class Dal + { + public string cim, eloado; + + public string Cim + { + get { return this.cim; } + set { this.cim = value; } + } + + public string Eloado + { + get { return this.eloado; } + set { this.eloado = value; } + } + public Dal(string cim, string eloado) + { + Cim = cim; + Eloado = eloado; + } + } + + class MusicPlayer + { + public List l = new List(); + + public void Lejatszas() + { + foreach (Dal d in l) + { + Console.WriteLine($"A szám előadója: {d.Eloado}"); + Console.WriteLine($"A szám címe: {d.Cim}"); + } + } + } + class Program + { + static void Main(string[] args) + { + MusicPlayer mp = new MusicPlayer(); + Dal song = new Dal("Mindig és soha", "Mikee Mykanic"); + Dal song1 = new Dal("Szellemjárás", "Killakikitt"); + mp.l.Add(song); + mp.l.Add(song1); + mp.Lejatszas(); + } + } +} diff --git a/20231215/Zenelejatszo/Properties/AssemblyInfo.cs b/20231215/Zenelejatszo/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..5226a12 --- /dev/null +++ b/20231215/Zenelejatszo/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("Zenelejatszo")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Zenelejatszo")] +[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("3e1a8b3f-2d1b-4361-9886-93be51e724ac")] + +// 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/20231215/Zenelejatszo/Zenelejatszo.csproj b/20231215/Zenelejatszo/Zenelejatszo.csproj new file mode 100644 index 0000000..d06b02d --- /dev/null +++ b/20231215/Zenelejatszo/Zenelejatszo.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {3E1A8B3F-2D1B-4361-9886-93BE51E724AC} + Exe + Zenelejatszo + Zenelejatszo + 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/20231215/Zenelejatszo/Zenelejatszo.sln b/20231215/Zenelejatszo/Zenelejatszo.sln new file mode 100644 index 0000000..821de08 --- /dev/null +++ b/20231215/Zenelejatszo/Zenelejatszo.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}") = "Zenelejatszo", "Zenelejatszo.csproj", "{3E1A8B3F-2D1B-4361-9886-93BE51E724AC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3E1A8B3F-2D1B-4361-9886-93BE51E724AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3E1A8B3F-2D1B-4361-9886-93BE51E724AC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3E1A8B3F-2D1B-4361-9886-93BE51E724AC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3E1A8B3F-2D1B-4361-9886-93BE51E724AC}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F3F21D7F-E2B8-484D-A338-B782660C8CF0} + EndGlobalSection +EndGlobal diff --git a/20231215/Zenelejatszo/bin/Debug/Zenelejatszo.exe b/20231215/Zenelejatszo/bin/Debug/Zenelejatszo.exe new file mode 100644 index 0000000..b5d64e6 Binary files /dev/null and b/20231215/Zenelejatszo/bin/Debug/Zenelejatszo.exe differ diff --git a/20231215/Zenelejatszo/bin/Debug/Zenelejatszo.exe.config b/20231215/Zenelejatszo/bin/Debug/Zenelejatszo.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20231215/Zenelejatszo/bin/Debug/Zenelejatszo.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20231215/Zenelejatszo/bin/Debug/Zenelejatszo.pdb b/20231215/Zenelejatszo/bin/Debug/Zenelejatszo.pdb new file mode 100644 index 0000000..7360e7b Binary files /dev/null and b/20231215/Zenelejatszo/bin/Debug/Zenelejatszo.pdb differ diff --git a/20231215/Zenelejatszo/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20231215/Zenelejatszo/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20231215/Zenelejatszo/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/20231215/Zenelejatszo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20231215/Zenelejatszo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..d69a595 Binary files /dev/null and b/20231215/Zenelejatszo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20231215/Zenelejatszo/obj/Debug/Zenelejatszo.csproj.AssemblyReference.cache b/20231215/Zenelejatszo/obj/Debug/Zenelejatszo.csproj.AssemblyReference.cache new file mode 100644 index 0000000..4eb356a Binary files /dev/null and b/20231215/Zenelejatszo/obj/Debug/Zenelejatszo.csproj.AssemblyReference.cache differ diff --git a/20231215/Zenelejatszo/obj/Debug/Zenelejatszo.csproj.CoreCompileInputs.cache b/20231215/Zenelejatszo/obj/Debug/Zenelejatszo.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20231215/Zenelejatszo/obj/Debug/Zenelejatszo.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20231215/Zenelejatszo/obj/Debug/Zenelejatszo.csproj.FileListAbsolute.txt b/20231215/Zenelejatszo/obj/Debug/Zenelejatszo.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..7aa2c19 --- /dev/null +++ b/20231215/Zenelejatszo/obj/Debug/Zenelejatszo.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\20231215\Zenelejatszo\bin\Debug\Zenelejatszo.exe.config +C:\Users\szabomarton\Desktop\C#\20231215\Zenelejatszo\bin\Debug\Zenelejatszo.exe +C:\Users\szabomarton\Desktop\C#\20231215\Zenelejatszo\bin\Debug\Zenelejatszo.pdb +C:\Users\szabomarton\Desktop\C#\20231215\Zenelejatszo\obj\Debug\Zenelejatszo.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20231215\Zenelejatszo\obj\Debug\Zenelejatszo.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20231215\Zenelejatszo\obj\Debug\Zenelejatszo.exe +C:\Users\szabomarton\Desktop\C#\20231215\Zenelejatszo\obj\Debug\Zenelejatszo.pdb diff --git a/20231215/Zenelejatszo/obj/Debug/Zenelejatszo.exe b/20231215/Zenelejatszo/obj/Debug/Zenelejatszo.exe new file mode 100644 index 0000000..b5d64e6 Binary files /dev/null and b/20231215/Zenelejatszo/obj/Debug/Zenelejatszo.exe differ diff --git a/20231215/Zenelejatszo/obj/Debug/Zenelejatszo.pdb b/20231215/Zenelejatszo/obj/Debug/Zenelejatszo.pdb new file mode 100644 index 0000000..7360e7b Binary files /dev/null and b/20231215/Zenelejatszo/obj/Debug/Zenelejatszo.pdb differ