stackdemo.cs
来自「vc的原码例子12 vc的原码例子12」· CS 代码 · 共 23 行
CS
23 行
using System;
using System.Collections;
public class StackDemo
{
public static void Main()
{
// Create and initialize a new Stack.
Stack Values = new Stack();
Values.Push(100);
Values.Push(200);
Values.Push(300);
Values.Push(400);
Values.Push(500);
int Count = Values.Count; // Get the number of items in the stack
for (int i = 0; i < Count; i++)
Console.WriteLine("{0}", Values.Pop());
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?