⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stackdemo.cs

📁 vc的原码例子12 vc的原码例子12
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -