Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace blah
- {
- class Program
- {
- static void Main(string[] args)
- {
- Stack<String> pilha = new Stack<String>();
- pilha.Push("Entrou primeiro na pilha");
- pilha.Push("Entrou por segundo na pilha");
- pilha.Push("Entrou por ultimo na pilha");
- Console.Write("{0}\r\n{1}\r\n{2}", pilha.Pop(), pilha.Pop(), pilha.Pop());
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment