2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -1,26 +0,0 @@
|
|||
[System.Collections.ArrayList]$queue = @()
|
||||
# isEmpty?
|
||||
if ($queue.Count -eq 0) {
|
||||
"isEmpty? result : the queue is empty"
|
||||
} else {
|
||||
"isEmpty? result : the queue is not empty"
|
||||
}
|
||||
"the queue contains : $queue"
|
||||
$queue += 1 # push
|
||||
"push result : $queue"
|
||||
$queue += 2 # push
|
||||
$queue += 3 # push
|
||||
"push result : $queue"
|
||||
|
||||
$queue.RemoveAt(0) # pop
|
||||
"pop result : $queue"
|
||||
|
||||
$queue.RemoveAt(0) # pop
|
||||
"pop result : $queue"
|
||||
|
||||
if ($queue.Count -eq 0) {
|
||||
"isEmpty? result : the queue is empty"
|
||||
} else {
|
||||
"isEmpty? result : the queue is not empty"
|
||||
}
|
||||
"the queue contains : $queue"
|
||||
Loading…
Add table
Add a link
Reference in a new issue