diff --git a/.vs/prog2-ss2020-wienkop/v16/.suo b/.vs/prog2-ss2020-wienkop/v16/.suo index 05b6b4f126299012e3d38730306a09458e0c9d55..425c9f1426dd7a9619bdd610d62d06dd49ff69be 100644 Binary files a/.vs/prog2-ss2020-wienkop/v16/.suo and b/.vs/prog2-ss2020-wienkop/v16/.suo differ diff --git a/01Buergeramt/obj/Debug/netcoreapp3.1/01Uebg_Buergeramt-Mo.csprojAssemblyReference.cache b/01Buergeramt/obj/Debug/netcoreapp3.1/01Uebg_Buergeramt-Mo.csprojAssemblyReference.cache index 75c16613d637ba1aee3feac158410536d13849e8..fb8b4de2efee802eaa6349069580d22e839ec1be 100644 Binary files a/01Buergeramt/obj/Debug/netcoreapp3.1/01Uebg_Buergeramt-Mo.csprojAssemblyReference.cache and b/01Buergeramt/obj/Debug/netcoreapp3.1/01Uebg_Buergeramt-Mo.csprojAssemblyReference.cache differ diff --git a/01Indexer/obj/Debug/netcoreapp3.1/01Indexer.csprojAssemblyReference.cache b/01Indexer/obj/Debug/netcoreapp3.1/01Indexer.csprojAssemblyReference.cache index 475e9f25ddab19c98e99fb9760c6360cd0369394..9373385b98e1b7a59f299923e290e7b415004a26 100644 Binary files a/01Indexer/obj/Debug/netcoreapp3.1/01Indexer.csprojAssemblyReference.cache and b/01Indexer/obj/Debug/netcoreapp3.1/01Indexer.csprojAssemblyReference.cache differ diff --git a/01KlassenWiederholung/obj/Debug/netcoreapp3.1/01KlassenWiederholung.csprojAssemblyReference.cache b/01KlassenWiederholung/obj/Debug/netcoreapp3.1/01KlassenWiederholung.csprojAssemblyReference.cache index 9bb701fecadc48763763df796398b7861ff2f7ec..9dfc37ed889ff4d2deed3ec1295b3086aa3c45af 100644 Binary files a/01KlassenWiederholung/obj/Debug/netcoreapp3.1/01KlassenWiederholung.csprojAssemblyReference.cache and b/01KlassenWiederholung/obj/Debug/netcoreapp3.1/01KlassenWiederholung.csprojAssemblyReference.cache differ diff --git a/01OperatorTrueFalse/obj/Debug/netcoreapp3.1/01OperatorTrueFalse.csprojAssemblyReference.cache b/01OperatorTrueFalse/obj/Debug/netcoreapp3.1/01OperatorTrueFalse.csprojAssemblyReference.cache index 09f733cba816ea75758c5185c8e79a12110d4074..98a1e6a32cef97cee689b7c42e40bd7555a13c6f 100644 Binary files a/01OperatorTrueFalse/obj/Debug/netcoreapp3.1/01OperatorTrueFalse.csprojAssemblyReference.cache and b/01OperatorTrueFalse/obj/Debug/netcoreapp3.1/01OperatorTrueFalse.csprojAssemblyReference.cache differ diff --git a/03 UebgMo FiFoListe/03 UebgMo FiFoListe.csproj b/03 UebgMo FiFoListe/03 UebgMo FiFoListe.csproj new file mode 100644 index 0000000000000000000000000000000000000000..d0e4706b9a1e4592cba9a193fbd5567af5292b96 --- /dev/null +++ b/03 UebgMo FiFoListe/03 UebgMo FiFoListe.csproj @@ -0,0 +1,9 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>Exe</OutputType> + <TargetFramework>netcoreapp3.1</TargetFramework> + <RootNamespace>_03_UebgMo_FiFoListe</RootNamespace> + </PropertyGroup> + +</Project> diff --git a/03 UebgMo FiFoListe/Program.cs b/03 UebgMo FiFoListe/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..c33377c28dc103f39c9502ffeecd5839ced3fc65 --- /dev/null +++ b/03 UebgMo FiFoListe/Program.cs @@ -0,0 +1,100 @@ +using System; + +namespace _03_UebgMo_FiFoListe +{ + class FiFoListe + { + class Element + { + public string name; + + + public Element(string name) { this.name = name; } + public override string ToString() => name; + } + Element anf, ende; + int anz; + public FiFoListe() + { + + } + /// <summary> + /// Fügt der Warteschlange ein neues Element hinzu + /// </summary> + /// <param name="text"></param> + public void Push(string text) + { + + } + /// <summary> + /// + /// </summary> + /// <param name="textFeld"></param> + public void Push(params string[] textFeld) + { + + } + /// <summary> + /// Liefert das erste Element zurück. Es bleibt aber in der Warteschlange + /// </summary> + /// <returns></returns> + public string First() + { + + } + /// <summary> + /// Liefert Wert des ersten Ausgabeelements zurück UND entfernt dieses aus der Warteschlange + /// </summary> + /// <returns></returns> + public string Pop() // + { + // 1.Fall: Liste ist leer + // 2.Fall: Liste besteht nur aus *einem* Element + // 3.Fall: Liste hat mehr als ein Element + + } + /// <summary> + /// Gibt alle Elemente der Warteschlange auf dem Bildschirm aus + /// </summary> + public void WriteAll() + { + + } + /// <summary> + /// liefert ein string-Feld mit allen gespeicherten Elementen zurück; + /// Elemente verbleiben in der Liste + /// </summary> + /// <returns></returns> + public string[] GetAll() + { + + } + /// <summary> + /// Anzahl der Elemente in der Warteschlange zurückgeben + /// </summary> + public int ItemCount { } + } + + class Program + { + static void Main(string[] args) + { + FiFoListe f = new FiFoListe(); + f.Push("Anton"); + f.Push("Berta", "Claudia", "Dieter", "Emil", "Gustav"); + Console.WriteLine($"Anzahl der Elemente in der Liste: {f.ItemCount}"); + f.WriteAll(); + Console.WriteLine("--------------"); + Console.WriteLine($"Erstes Element: {f.First()}"); + Console.WriteLine($"Pop: {f.Pop()}"); + Console.WriteLine($"Pop: {f.Pop()}"); + Console.WriteLine($"Anzahl der Elemente in der Liste: {f.ItemCount}"); + Console.WriteLine("--------------"); + string[] namen = f.GetAll(); + foreach (string item in namen) + { + Console.WriteLine($"foreach: {item}"); + } + } + } +} diff --git a/03 UebgMo FiFoListe/obj/03 UebgMo FiFoListe.csproj.nuget.dgspec.json b/03 UebgMo FiFoListe/obj/03 UebgMo FiFoListe.csproj.nuget.dgspec.json new file mode 100644 index 0000000000000000000000000000000000000000..143dbb89c555829291fc4fccb6e2a0ba4a11c57b --- /dev/null +++ b/03 UebgMo FiFoListe/obj/03 UebgMo FiFoListe.csproj.nuget.dgspec.json @@ -0,0 +1,60 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03 UebgMo FiFoListe\\03 UebgMo FiFoListe.csproj": {} + }, + "projects": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03 UebgMo FiFoListe\\03 UebgMo FiFoListe.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03 UebgMo FiFoListe\\03 UebgMo FiFoListe.csproj", + "projectName": "03 UebgMo FiFoListe", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03 UebgMo FiFoListe\\03 UebgMo FiFoListe.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03 UebgMo FiFoListe\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\wienkop\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.201\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/03 UebgMo FiFoListe/obj/03 UebgMo FiFoListe.csproj.nuget.g.props b/03 UebgMo FiFoListe/obj/03 UebgMo FiFoListe.csproj.nuget.g.props new file mode 100644 index 0000000000000000000000000000000000000000..dcb699c0e9a92aa0db59dc7c324b470d0dce8c74 --- /dev/null +++ b/03 UebgMo FiFoListe/obj/03 UebgMo FiFoListe.csproj.nuget.g.props @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> + <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess> + <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool> + <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile> + <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> + <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\wienkop\.nuget\packages\</NuGetPackageFolders> + <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> + <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.5.0</NuGetToolVersion> + </PropertyGroup> + <PropertyGroup> + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/03 UebgMo FiFoListe/obj/03 UebgMo FiFoListe.csproj.nuget.g.targets b/03 UebgMo FiFoListe/obj/03 UebgMo FiFoListe.csproj.nuget.g.targets new file mode 100644 index 0000000000000000000000000000000000000000..53cfaa19b16f3769b2bfc33db3b5c0053c16fdba --- /dev/null +++ b/03 UebgMo FiFoListe/obj/03 UebgMo FiFoListe.csproj.nuget.g.targets @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/03 UebgMo FiFoListe/obj/Debug/netcoreapp3.1/03 UebgMo FiFoListe.AssemblyInfo.cs b/03 UebgMo FiFoListe/obj/Debug/netcoreapp3.1/03 UebgMo FiFoListe.AssemblyInfo.cs new file mode 100644 index 0000000000000000000000000000000000000000..f49829c224eee71f4e11009af7f948ef6845931d --- /dev/null +++ b/03 UebgMo FiFoListe/obj/Debug/netcoreapp3.1/03 UebgMo FiFoListe.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// </auto-generated> +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("03 UebgMo FiFoListe")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("03 UebgMo FiFoListe")] +[assembly: System.Reflection.AssemblyTitleAttribute("03 UebgMo FiFoListe")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Von der MSBuild WriteCodeFragment-Klasse generiert. + diff --git a/03 UebgMo FiFoListe/obj/Debug/netcoreapp3.1/03 UebgMo FiFoListe.AssemblyInfoInputs.cache b/03 UebgMo FiFoListe/obj/Debug/netcoreapp3.1/03 UebgMo FiFoListe.AssemblyInfoInputs.cache new file mode 100644 index 0000000000000000000000000000000000000000..7535440aefb8eb7819ccc871b236146ef563cf42 --- /dev/null +++ b/03 UebgMo FiFoListe/obj/Debug/netcoreapp3.1/03 UebgMo FiFoListe.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +222e6455147d1543dd2d728e945a09cbf57495bb diff --git a/03 UebgMo FiFoListe/obj/Debug/netcoreapp3.1/03 UebgMo FiFoListe.assets.cache b/03 UebgMo FiFoListe/obj/Debug/netcoreapp3.1/03 UebgMo FiFoListe.assets.cache new file mode 100644 index 0000000000000000000000000000000000000000..45e00c0223eb521d99a4b9766849b7fc8525235e Binary files /dev/null and b/03 UebgMo FiFoListe/obj/Debug/netcoreapp3.1/03 UebgMo FiFoListe.assets.cache differ diff --git a/03 UebgMo FiFoListe/obj/project.assets.json b/03 UebgMo FiFoListe/obj/project.assets.json new file mode 100644 index 0000000000000000000000000000000000000000..116801a2f4aeb8c93eb79f5896454bef2f3233cf --- /dev/null +++ b/03 UebgMo FiFoListe/obj/project.assets.json @@ -0,0 +1,65 @@ +{ + "version": 3, + "targets": { + ".NETCoreApp,Version=v3.1": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + ".NETCoreApp,Version=v3.1": [] + }, + "packageFolders": { + "C:\\Users\\wienkop\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03 UebgMo FiFoListe\\03 UebgMo FiFoListe.csproj", + "projectName": "03 UebgMo FiFoListe", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03 UebgMo FiFoListe\\03 UebgMo FiFoListe.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03 UebgMo FiFoListe\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\wienkop\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.201\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/03 UebgMo FiFoListe/obj/project.nuget.cache b/03 UebgMo FiFoListe/obj/project.nuget.cache new file mode 100644 index 0000000000000000000000000000000000000000..c2d470863e8b707b12c272860a593bdb66f695e2 --- /dev/null +++ b/03 UebgMo FiFoListe/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "i8IiL9AiRX/O8Ku2xqHZ7XwZUJ7L7WgrubdnBUgI2Oe0L0p6WIJkrdHAkhtp8JC0czNxYhyWEd872oHP/lEJxg==", + "success": true, + "projectFilePath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03 UebgMo FiFoListe\\03 UebgMo FiFoListe.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/prog2-ss2020-wienkop.sln b/prog2-ss2020-wienkop.sln index 65962e61ef6ee50992bdd9f174faa4773a83cfe5..bb088c84c6fc9f1c55a5bf0bccbf294c779592d1 100644 --- a/prog2-ss2020-wienkop.sln +++ b/prog2-ss2020-wienkop.sln @@ -30,7 +30,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "02VerketteteListe-1Intro", EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "02VerketteteListe-2", "02VerketteteListe-2\02VerketteteListe-2.csproj", "{EC53AD78-5283-4784-8F93-49AF021BC2DC}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02 UebgSa FiFoListe", "02 UebgSa FiFoListe\02 UebgSa FiFoListe.csproj", "{BA0D110D-7CBD-4EC0-893F-A94324066ADA}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "02 UebgSa FiFoListe", "02 UebgSa FiFoListe\02 UebgSa FiFoListe.csproj", "{BA0D110D-7CBD-4EC0-893F-A94324066ADA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "03 UebgMo FiFoListe", "03 UebgMo FiFoListe\03 UebgMo FiFoListe.csproj", "{8A18FA14-5B36-46B3-BB62-907E6A2855A3}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -86,6 +88,10 @@ Global {BA0D110D-7CBD-4EC0-893F-A94324066ADA}.Debug|Any CPU.Build.0 = Debug|Any CPU {BA0D110D-7CBD-4EC0-893F-A94324066ADA}.Release|Any CPU.ActiveCfg = Release|Any CPU {BA0D110D-7CBD-4EC0-893F-A94324066ADA}.Release|Any CPU.Build.0 = Release|Any CPU + {8A18FA14-5B36-46B3-BB62-907E6A2855A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8A18FA14-5B36-46B3-BB62-907E6A2855A3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8A18FA14-5B36-46B3-BB62-907E6A2855A3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8A18FA14-5B36-46B3-BB62-907E6A2855A3}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE