fork(2) download
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. Queue<string> fila = new Queue<string>();
  9. fila.Enqueue("Teste 1");
  10. fila.Enqueue("Teste 2");
  11. fila.Enqueue("Teste 3");
  12. foreach(string pedido in fila) {
  13. Console.WriteLine(pedido);
  14. }
  15. }
  16. }
Success #stdin #stdout 0.02s 24224KB
stdin
Standard input is empty
stdout
Teste 1
Teste 2
Teste 3