Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created February 27, 2014 03:02
Show Gist options
  • Save Fhernd/9243580 to your computer and use it in GitHub Desktop.
Save Fhernd/9243580 to your computer and use it in GitHub Desktop.
Demostración de uso de pila en C#.
public class Stack
{
int position;
object[] data = new object[10];
public void Push (object obj)
{
data[position++] = obj;
}
public object Pop()
{
return data[--position];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment