queue class : Enqueue(class) method

Description

Adds an instance to the end of the queue.

Syntax

queueInstance.Enqueue(someClass element)

Arguments

ClassNameDescription
someClasselementThe instance to be added.

Return value

None

Sample code

//anyQueue is a instance of queue{string} type.

anyQueue.Enqueue("ww");

Notes

It's a wrapper of the System.Collections.Generic.Queue<t>.Enqueue(T).

Links for reference

Copyright © Rice All rights reserved.