添加Lesson11

This commit is contained in:
2025-10-15 10:11:45 +08:00
parent 58e0a25def
commit 301c345a6a
5 changed files with 125 additions and 0 deletions
@@ -0,0 +1,54 @@
namespace Lesson11_泛型栈和队列
{
internal class Program
{
static void Main(string[] args)
{
#region
#region
//无符号
//byte ushort uint ulong
//有符号
//sbyte short int long
//浮点数
//float double decimal
//特殊
//char bool string
#endregion
#region
///枚举 enum
///结构体 struct
///数组(一维、二维、交错)[] [,] [][]
///类
#endregion
#region
//using System.Collections;
//ArrayList object数据列表
//Stack 栈 先进后出
//Queue 队列 先进先出
//Hashtable 哈希表 键值对
#endregion
#region
//using System.Collections.Generic;
//List 列表 泛型队列
//Dictionary 字典 泛型哈希表
//LinkedList 双向链表
//Stack 泛型栈
//Queue 泛型队列
#endregion
#endregion
#region
//命名空间 System.Collections.Generic
//在使用上和Stack和Queue类似
Stack<int> stack = new Stack<int>();
Queue<int> queue = new Queue<int>();
#endregion
}
}
}