Mercurial > hg > Database > jungle-sharp
comparison src/test/csharp/jp.ac.u-ryukyu.ie.cr/junge-main/data/treemap/TreeMapDelete.cs @ 12:b71d9ea6bd8e
Add Network Operation Class. this codes can not test yet.
author | Kazuma |
---|---|
date | Sun, 23 Oct 2016 12:25:57 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
11:220433691c2e | 12:b71d9ea6bd8e |
---|---|
1 using UnityEngine; | |
2 | |
3 public class TreeMapDelete : MonoBehaviour { | |
4 | |
5 // Use this for initialization | |
6 void Start () { | |
7 TreeMap<int,int> map = new TreeMap<int, int> (); | |
8 for (int count = 1; count < 6; count++) { | |
9 map = map.put (count, count); | |
10 map.checkDepth (); | |
11 } | |
12 | |
13 // ただ消すための数字をここに入れているだけ | |
14 List<int> list = new List<int>(); | |
15 for (int count = 1; count < 6; count++) { | |
16 list = list.addLast (count); | |
17 } | |
18 | |
19 foreach(int num in list){ | |
20 Debug.Log(num); | |
21 map = map.delete(num); | |
22 map.checkDepth(); | |
23 } | |
24 Debug.Log ("end"); | |
25 } | |
26 } |