diff --git a/20241122/ConsoleApp1/.vs/ConsoleApp1/DesignTimeBuild/.dtbcache.v2 b/20241122/ConsoleApp1/.vs/ConsoleApp1/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000..d183e18 Binary files /dev/null and b/20241122/ConsoleApp1/.vs/ConsoleApp1/DesignTimeBuild/.dtbcache.v2 differ diff --git a/20241122/ConsoleApp1/.vs/ConsoleApp1/FileContentIndex/91ed0afc-3467-4bfb-bd81-22f4c8b229d4.vsidx b/20241122/ConsoleApp1/.vs/ConsoleApp1/FileContentIndex/91ed0afc-3467-4bfb-bd81-22f4c8b229d4.vsidx new file mode 100644 index 0000000..019af73 Binary files /dev/null and b/20241122/ConsoleApp1/.vs/ConsoleApp1/FileContentIndex/91ed0afc-3467-4bfb-bd81-22f4c8b229d4.vsidx differ diff --git a/20241122/ConsoleApp1/.vs/ConsoleApp1/v17/.futdcache.v2 b/20241122/ConsoleApp1/.vs/ConsoleApp1/v17/.futdcache.v2 new file mode 100644 index 0000000..92a039d Binary files /dev/null and b/20241122/ConsoleApp1/.vs/ConsoleApp1/v17/.futdcache.v2 differ diff --git a/20241122/ConsoleApp1/.vs/ConsoleApp1/v17/.suo b/20241122/ConsoleApp1/.vs/ConsoleApp1/v17/.suo new file mode 100644 index 0000000..8a89d32 Binary files /dev/null and b/20241122/ConsoleApp1/.vs/ConsoleApp1/v17/.suo differ diff --git a/20241122/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.backup.json b/20241122/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.backup.json new file mode 100644 index 0000000..fbfb88c --- /dev/null +++ b/20241122/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.backup.json @@ -0,0 +1,41 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241122\\ConsoleApp1\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{529FE57B-DB53-4420-9E47-6FC259D3CDA8}|ConsoleApp1\\ConsoleApp1.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20241122\\consoleapp1\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{529FE57B-DB53-4420-9E47-6FC259D3CDA8}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 0, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Program.cs", + "DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241122\\ConsoleApp1\\ConsoleApp1\\Program.cs", + "RelativeDocumentMoniker": "ConsoleApp1\\Program.cs", + "ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241122\\ConsoleApp1\\ConsoleApp1\\Program.cs", + "RelativeToolTip": "ConsoleApp1\\Program.cs", + "ViewState": "AgIAADwAAAAAAAAAAAAkwFUAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-11-22T09:04:52.451Z", + "EditorCaption": "" + }, + { + "$type": "Bookmark", + "Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/20241122/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.json b/20241122/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.json new file mode 100644 index 0000000..fbfb88c --- /dev/null +++ b/20241122/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.json @@ -0,0 +1,41 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241122\\ConsoleApp1\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{529FE57B-DB53-4420-9E47-6FC259D3CDA8}|ConsoleApp1\\ConsoleApp1.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20241122\\consoleapp1\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{529FE57B-DB53-4420-9E47-6FC259D3CDA8}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 0, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Program.cs", + "DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241122\\ConsoleApp1\\ConsoleApp1\\Program.cs", + "RelativeDocumentMoniker": "ConsoleApp1\\Program.cs", + "ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241122\\ConsoleApp1\\ConsoleApp1\\Program.cs", + "RelativeToolTip": "ConsoleApp1\\Program.cs", + "ViewState": "AgIAADwAAAAAAAAAAAAkwFUAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-11-22T09:04:52.451Z", + "EditorCaption": "" + }, + { + "$type": "Bookmark", + "Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/20241122/ConsoleApp1/.vs/ProjectEvaluation/consoleapp1.metadata.v9.bin b/20241122/ConsoleApp1/.vs/ProjectEvaluation/consoleapp1.metadata.v9.bin new file mode 100644 index 0000000..c871f39 Binary files /dev/null and b/20241122/ConsoleApp1/.vs/ProjectEvaluation/consoleapp1.metadata.v9.bin differ diff --git a/20241122/ConsoleApp1/.vs/ProjectEvaluation/consoleapp1.projects.v9.bin b/20241122/ConsoleApp1/.vs/ProjectEvaluation/consoleapp1.projects.v9.bin new file mode 100644 index 0000000..f37b96a Binary files /dev/null and b/20241122/ConsoleApp1/.vs/ProjectEvaluation/consoleapp1.projects.v9.bin differ diff --git a/20241122/ConsoleApp1/.vs/ProjectEvaluation/consoleapp1.strings.v9.bin b/20241122/ConsoleApp1/.vs/ProjectEvaluation/consoleapp1.strings.v9.bin new file mode 100644 index 0000000..ec3b8f0 Binary files /dev/null and b/20241122/ConsoleApp1/.vs/ProjectEvaluation/consoleapp1.strings.v9.bin differ diff --git a/20241122/ConsoleApp1/ConsoleApp1.sln b/20241122/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..c12cb2b --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35303.130 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{529FE57B-DB53-4420-9E47-6FC259D3CDA8}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {529FE57B-DB53-4420-9E47-6FC259D3CDA8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {529FE57B-DB53-4420-9E47-6FC259D3CDA8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {529FE57B-DB53-4420-9E47-6FC259D3CDA8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {529FE57B-DB53-4420-9E47-6FC259D3CDA8}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5611284C-AF12-4EA7-A777-BA889405F9FB} + EndGlobalSection +EndGlobal diff --git a/20241122/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj b/20241122/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..2150e37 --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git a/20241122/ConsoleApp1/ConsoleApp1/Program.cs b/20241122/ConsoleApp1/ConsoleApp1/Program.cs new file mode 100644 index 0000000..eacf38d --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/Program.cs @@ -0,0 +1,87 @@ +public class Verem +{ + private T[] elemek; + private int meret; + private int teteje; + + public Verem(int kapacitas) + { + elemek = new T[kapacitas]; + meret = kapacitas; + teteje = -1; + } + + public void Push(T adat) + { + if (teteje == meret - 1) + { + Console.WriteLine("A verem tele van"); + return; + } + + elemek[++teteje] = adat; + } + + public T Pop() { + if (Ures()) + { + Console.WriteLine("A verem üres, nincs mit eltávolítani."); + return default; + } + + return elemek[teteje--]; + } + + public T Peek() + { + if (Ures()) + { + Console.WriteLine("A verem üres"); + return default; + } + + return elemek[teteje]; + } + + public bool Ures() + { + return teteje == -1; + } + + public void Kiir() + { + if (Ures()) + { + Console.WriteLine("A verem üres"); + return; + } + + Console.WriteLine("A verem elemei csúcstól lefelé: "); + for(int i = teteje; i >= 0; i--) + { + Console.WriteLine(elemek[i]); + } + } +} + +internal class Program +{ + static void Main(string[] args) + { + Verem verem = new Verem(5); + + verem.Push(10); + verem.Push(20); + verem.Push(30); + verem.Push(40); + + verem.Kiir(); + + verem.Pop(); + verem.Kiir(); + + + } +} + + diff --git a/20241122/ConsoleApp1/ConsoleApp1/bin/Debug/net8.0/ConsoleApp1.deps.json b/20241122/ConsoleApp1/ConsoleApp1/bin/Debug/net8.0/ConsoleApp1.deps.json new file mode 100644 index 0000000..8c6a00b --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/bin/Debug/net8.0/ConsoleApp1.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "ConsoleApp1/1.0.0": { + "runtime": { + "ConsoleApp1.dll": {} + } + } + } + }, + "libraries": { + "ConsoleApp1/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/20241122/ConsoleApp1/ConsoleApp1/bin/Debug/net8.0/ConsoleApp1.dll b/20241122/ConsoleApp1/ConsoleApp1/bin/Debug/net8.0/ConsoleApp1.dll new file mode 100644 index 0000000..7e4b30b Binary files /dev/null and b/20241122/ConsoleApp1/ConsoleApp1/bin/Debug/net8.0/ConsoleApp1.dll differ diff --git a/20241122/ConsoleApp1/ConsoleApp1/bin/Debug/net8.0/ConsoleApp1.exe b/20241122/ConsoleApp1/ConsoleApp1/bin/Debug/net8.0/ConsoleApp1.exe new file mode 100644 index 0000000..6aa5b5e Binary files /dev/null and b/20241122/ConsoleApp1/ConsoleApp1/bin/Debug/net8.0/ConsoleApp1.exe differ diff --git a/20241122/ConsoleApp1/ConsoleApp1/bin/Debug/net8.0/ConsoleApp1.pdb b/20241122/ConsoleApp1/ConsoleApp1/bin/Debug/net8.0/ConsoleApp1.pdb new file mode 100644 index 0000000..32f37eb Binary files /dev/null and b/20241122/ConsoleApp1/ConsoleApp1/bin/Debug/net8.0/ConsoleApp1.pdb differ diff --git a/20241122/ConsoleApp1/ConsoleApp1/bin/Debug/net8.0/ConsoleApp1.runtimeconfig.json b/20241122/ConsoleApp1/ConsoleApp1/bin/Debug/net8.0/ConsoleApp1.runtimeconfig.json new file mode 100644 index 0000000..becfaea --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/bin/Debug/net8.0/ConsoleApp1.runtimeconfig.json @@ -0,0 +1,12 @@ +{ + "runtimeOptions": { + "tfm": "net8.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "8.0.0" + }, + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/ConsoleApp1.csproj.nuget.dgspec.json b/20241122/ConsoleApp1/ConsoleApp1/obj/ConsoleApp1.csproj.nuget.dgspec.json new file mode 100644 index 0000000..ab296e4 --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/obj/ConsoleApp1.csproj.nuget.dgspec.json @@ -0,0 +1,68 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241122\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj": {} + }, + "projects": { + "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241122\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241122\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj", + "projectName": "ConsoleApp1", + "projectPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241122\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj", + "packagesPath": "C:\\Users\\szabomarton\\.nuget\\packages\\", + "outputPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241122\\ConsoleApp1\\ConsoleApp1\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\szabomarton\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + } + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/ConsoleApp1.csproj.nuget.g.props b/20241122/ConsoleApp1/ConsoleApp1/obj/ConsoleApp1.csproj.nuget.g.props new file mode 100644 index 0000000..8d6358c --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/obj/ConsoleApp1.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\szabomarton\.nuget\packages\ + PackageReference + 6.11.0 + + + + + \ No newline at end of file diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/ConsoleApp1.csproj.nuget.g.targets b/20241122/ConsoleApp1/ConsoleApp1/obj/ConsoleApp1.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/obj/ConsoleApp1.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..2217181 --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.AssemblyInfo.cs b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.AssemblyInfo.cs new file mode 100644 index 0000000..5cb51fc --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("ConsoleApp1")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+d802eb4b674758609f9a4b91a0ce5576ed3a6cd3")] +[assembly: System.Reflection.AssemblyProductAttribute("ConsoleApp1")] +[assembly: System.Reflection.AssemblyTitleAttribute("ConsoleApp1")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.AssemblyInfoInputs.cache b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.AssemblyInfoInputs.cache new file mode 100644 index 0000000..35632d5 --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +3c2e7ad382fcdee58d4ddf80631dbbf8a4f0c5a24f2423aefb326db303479fd0 diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.GeneratedMSBuildEditorConfig.editorconfig b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..7aea513 --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,13 @@ +is_global = true +build_property.TargetFramework = net8.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = ConsoleApp1 +build_property.ProjectDir = C:\Users\szabomarton\Desktop\C#\ProgaOra\20241122\ConsoleApp1\ConsoleApp1\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.GlobalUsings.g.cs b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.assets.cache b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.assets.cache new file mode 100644 index 0000000..9b10981 Binary files /dev/null and b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.assets.cache differ diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.csproj.CoreCompileInputs.cache b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..591875d --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f1c35188bf0c59fbea1d24b1d43dc1963ee3d5043bdfb42e9b9890b98c38178 diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.csproj.FileListAbsolute.txt b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..72ac001 --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,14 @@ +C:\Users\szabomarton\Desktop\C#\ProgaOra\20241122\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\ProgaOra\20241122\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ConsoleApp1.deps.json +C:\Users\szabomarton\Desktop\C#\ProgaOra\20241122\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ConsoleApp1.runtimeconfig.json +C:\Users\szabomarton\Desktop\C#\ProgaOra\20241122\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ConsoleApp1.dll +C:\Users\szabomarton\Desktop\C#\ProgaOra\20241122\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\ProgaOra\20241122\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\ConsoleApp1.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\szabomarton\Desktop\C#\ProgaOra\20241122\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\ConsoleApp1.AssemblyInfoInputs.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20241122\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\ConsoleApp1.AssemblyInfo.cs +C:\Users\szabomarton\Desktop\C#\ProgaOra\20241122\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20241122\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\ConsoleApp1.dll +C:\Users\szabomarton\Desktop\C#\ProgaOra\20241122\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\refint\ConsoleApp1.dll +C:\Users\szabomarton\Desktop\C#\ProgaOra\20241122\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\ProgaOra\20241122\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\ConsoleApp1.genruntimeconfig.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20241122\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\ref\ConsoleApp1.dll diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.dll b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.dll new file mode 100644 index 0000000..7e4b30b Binary files /dev/null and b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.dll differ diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.genruntimeconfig.cache b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.genruntimeconfig.cache new file mode 100644 index 0000000..cc75b27 --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.genruntimeconfig.cache @@ -0,0 +1 @@ +0c04a0370fb6c5e06eab55176904758c649ab2afec3dfdabfda400adc65066cc diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.pdb b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.pdb new file mode 100644 index 0000000..32f37eb Binary files /dev/null and b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ConsoleApp1.pdb differ diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/apphost.exe b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/apphost.exe new file mode 100644 index 0000000..6aa5b5e Binary files /dev/null and b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/apphost.exe differ diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ref/ConsoleApp1.dll b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ref/ConsoleApp1.dll new file mode 100644 index 0000000..eff4c02 Binary files /dev/null and b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/ref/ConsoleApp1.dll differ diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/refint/ConsoleApp1.dll b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/refint/ConsoleApp1.dll new file mode 100644 index 0000000..eff4c02 Binary files /dev/null and b/20241122/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/refint/ConsoleApp1.dll differ diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/project.assets.json b/20241122/ConsoleApp1/ConsoleApp1/obj/project.assets.json new file mode 100644 index 0000000..bacfafd --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/obj/project.assets.json @@ -0,0 +1,73 @@ +{ + "version": 3, + "targets": { + "net8.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net8.0": [] + }, + "packageFolders": { + "C:\\Users\\szabomarton\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241122\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj", + "projectName": "ConsoleApp1", + "projectPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241122\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj", + "packagesPath": "C:\\Users\\szabomarton\\.nuget\\packages\\", + "outputPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241122\\ConsoleApp1\\ConsoleApp1\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\szabomarton\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + } + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/20241122/ConsoleApp1/ConsoleApp1/obj/project.nuget.cache b/20241122/ConsoleApp1/ConsoleApp1/obj/project.nuget.cache new file mode 100644 index 0000000..5e10249 --- /dev/null +++ b/20241122/ConsoleApp1/ConsoleApp1/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "hKvlne6ZWfY=", + "success": true, + "projectFilePath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241122\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/20241122/Órai1122.pdf b/20241122/Órai1122.pdf new file mode 100644 index 0000000..89a7827 Binary files /dev/null and b/20241122/Órai1122.pdf differ diff --git a/adatstrukturak b/adatstrukturak index 4983d79..90ba1d9 100644 --- a/adatstrukturak +++ b/adatstrukturak @@ -187,3 +187,37 @@ Láncolt listák fontos metódusai A .Value metódus az adott csomópontban eltárolt adatot adja vissza. Mivel tudjuk, hogy a láncolt listák utolsó, illetve első eleme null értékű, így egy while ciklussal is végig tudunk menni az adott láncolt listán, a léptetéséről a Next gondoskodik. + +Verem (stack) + A verem egy olyan adatszerkezet, amelyben az utoljára betett elemet tudjuk feldolgozni. + (LIFO) + A veremmutató mindig a legfelső elemre mutat. + A push a tetejére rak , a pop onnan vesz el. + + A Stack osztály fontosabb tulajdonságai és metódusai: + Stack(int capacity) + Paraméteres konstruktor. A paraméter a kiindulásként tárolni kivánt elemej számát adja meg. + Stack(IEnumerable collection) + Paraméteres konstruktor. + A verem elemei aparaméterklnt megadott IEnumerable felület implementáló osztály elemei lesznek. + + T Peek() + Visszaadja a verem tetején lévő elemet anélkül, hogy azt kivenne a verembol. + + T Pop() + Visszaadja a verem tetején lévő elemet és az elemet eltávolítja a veremből. + + void Push() + A paraméterkéntmegadott elemet beilleszti a verem tetejére. + + T[] ToArray() + A verem elemeit visszaadja egy tömbben. + + void TrimExcess() + Átméretezi a veremet úgy, hogy csak annyi elemnek foglaljon helyet, mint amennyi ténylegesen használva van. + + + + + +