diff --git a/QueueApplicatio/Class1.cs b/QueueApplicatio/Class1.cs new file mode 100644 index 0000000000000000000000000000000000000000..726af8c6f0ccb8996a00608616b66f806b6944f6 --- /dev/null +++ b/QueueApplicatio/Class1.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; + +namespace QueueApplication +{ + class Class1 + { + + } +} diff --git a/QueueApplicatio/Program.cs b/QueueApplicatio/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..c4c89e881784938805e0a13c546858572ca0353f --- /dev/null +++ b/QueueApplicatio/Program.cs @@ -0,0 +1,40 @@ +using DocumentFormat.OpenXml.Bibliography; +using System; +using System.Collections; +using System.Collections.Generic; + +namespace QueueApplication +{ + + class Program + { + static void Main(string[] args) + { + Queue q = new Queue(); + + q.Enqueue('a'); + q.Enqueue('b'); + q.Enqueue('c'); + q.Enqueue('d'); + + Console.WriteLine("Current queue: "); + foreach (char c in q) + Console.Write(c + " "); + Console.WriteLine(); + q.Enqueue('e'); + q.Enqueue('f'); + Console.WriteLine("Current queue: "); + foreach (char c in q) + Console.Write(c + " "); + Console.WriteLine(); + Console.WriteLine("Removing some values "); + char ch = (char)q.Dequeue(); + Console.WriteLine("The removed value: {0}", ch); + ch = (char)q.Dequeue(); + Console.WriteLine("The removed value: {0}", ch); + Console.ReadKey(); + } + } + } + + diff --git a/QueueApplicatio/QueueApplicatio.sln b/QueueApplicatio/QueueApplicatio.sln new file mode 100644 index 0000000000000000000000000000000000000000..43258ea4235bd40b06dcca39ce5d02daf0add2ca --- /dev/null +++ b/QueueApplicatio/QueueApplicatio.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30204.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QueueApplication", "QueueApplication.csproj", "{EEA2B686-9119-4285-A1A5-C13FC0C98160}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {EEA2B686-9119-4285-A1A5-C13FC0C98160}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EEA2B686-9119-4285-A1A5-C13FC0C98160}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EEA2B686-9119-4285-A1A5-C13FC0C98160}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EEA2B686-9119-4285-A1A5-C13FC0C98160}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EDB3D3C3-E228-4125-B615-6742856DEE37} + EndGlobalSection +EndGlobal diff --git a/QueueApplicatio/QueueApplication.csproj b/QueueApplicatio/QueueApplication.csproj new file mode 100644 index 0000000000000000000000000000000000000000..74ed558ff92838f25ca9112798b8d19cd3185f7b --- /dev/null +++ b/QueueApplicatio/QueueApplication.csproj @@ -0,0 +1,12 @@ + + + + Exe + netcoreapp3.1 + + + + + + +