1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
using System;
using System.Collections;
namespace ee
{
class MainApp
{
static void Main(string[] args)
{
Queue que = new Queue();
que.Enqueue(1);
que.Enqueue(2);
que.Enqueue(3);
que.Enqueue(4);
que.Enqueue(5);
while (que.Count > 0)
Console.WriteLine(que.Dequeue());
}
}
}
|
cs |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
using System;
using System.Collections;
namespace ee
{
class MainApp
{
static void Main(string[] args)
{
Hashtable ht = new Hashtable();
ht["회사"] = "Microsoft";
ht["URL"] = "www.microsoft.com";
Console.WriteLine("회사 : {0}", ht["회사"]);
Console.WriteLine("URL : {0}", ht["URL"]);
}
}
}
|
cs |
'C#' 카테고리의 다른 글
델리게이트 기본 예제 (0) | 2022.07.26 |
---|---|
뇌를 자극하는 C# 5.0 프로그래밍 연습문제 11장 1,2번 (0) | 2022.07.26 |
뇌를 자극하는 C# 5.0 프로그래밍 연습문제 10장 3번 (0) | 2022.07.26 |
뇌를 자극하는 C# 5.0 프로그래밍 연습문제 10장 2번 (0) | 2022.07.26 |
뇌를 자극하는 C# 5.0 프로그래밍 연습문제 6장 3번 (0) | 2022.07.26 |