A.settraversaltype (Traveltype);//Set Traversal type
Tmpienum=a.getenumerator ();
Console.WriteLine ("Begin to Depthfist travel:");
while (Tmpienum.movenext ())
{
Console.WriteLine (TmpIEnum.Current.ToString ());
}
}
public static void Showstack_rpncalculator ()
{
Read a expression string and push every character into the stack in queue.
Console.WriteLine ("This is performance to stack,you can input a string like this ' 123*+ ', then this subprogramme can Compu Te it and get the result ' 7 ', which is RPN calculator. ");
Console.WriteLine ("Please input a expression string:");
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.