Created
February 27, 2014 03:02
-
-
Save Fhernd/9243580 to your computer and use it in GitHub Desktop.
Demostración de uso de pila 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
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