Created
March 26, 2016 14:49
-
-
Save Fhernd/19fa4649d81a2db4a2da to your computer and use it in GitHub Desktop.
Demostración uso de la clase genérica Queue en C#.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace Articulos.Pregunta.P1220 | |
{ | |
public class UsoQueue | |
{ | |
public static void Main() | |
{ | |
Queue<string> aplicaciones = new Queue<string>(); | |
aplicaciones.Enqueue("Notepad++"); | |
aplicaciones.Enqueue("Chrome"); | |
aplicaciones.Enqueue("PowerShell"); | |
aplicaciones.Enqueue("ClipMate"); | |
aplicaciones.Enqueue("Evernote"); | |
// Recorrido por los elementos de la lista: | |
foreach (string aplicacion in aplicaciones) | |
{ | |
Console.WriteLine (aplicacion); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment