using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp_stack1
{
///
/// System.Collections.Generic名前空間のStackクラスを呼び出すStackMainクラスの定義。
///
class StackMain
{
///
/// アプリケーションのメインエントリポイント
///
///
[STAThread]
static void Main(string[] args)
{
// スタック(stack)の作成
// スタック(stack)とは、LIFO(Last In First Out)型のデータ構造
// テキストP17の応用
Stack