Example #1
0
func main() {
	//var tmp q.Queue
	this := q.NewQueue()

	/*    queue.q.Insert(2)*/
	fmt.Printf("%d\n", this.Len())

	this.Insert(2)
	fmt.Printf("%d\n", this.Len())

	fmt.Printf("data: %d\n", this.Remove())
	fmt.Printf("%d\n", this.Len())
}
Example #2
0
func NewPlace(n uint) *Place {
	p := new(Place)
	p.objectQueue = queue.NewQueue()
	p.nummer = n
	return p
}