如何在C#Windows窗体中使用当前堆栈对象创建新的堆栈对象? [英] How to Create a New Stack Object using Current Stack Object in C# Windows Forms?
问题描述
使用此代码初始化堆栈.
Using this code for initialization of a stack.
Stack<int> stack = new Stack<int>();
我应该如何从诸如stack.push(i)之类的当前堆栈对象创建一个新堆栈,例如在某些情况下可能会有一些循环值.如果我有两个来自当前堆栈节点的路径.我如何能够确定另外两个其他堆栈实例 为他们分配参考地址?
How should be i able to create a new stack from current stack object like stack.push(i) i maybe some loop values from certain situation for Example. If i have two Path from a current stack node. How shall i able to decide the two more other stack instances for them and assign the reference Address ?
预先感谢.
推荐答案
阿什曼·马利克,您好
Hi Ashman Malik,
此论坛是Winforms设计或控件.您的问题与C#有关,我将您的帖子移至C#论坛以获得更好的支持.感谢您的理解.
This forum is Winforms design or controls. Your issue is more related to C#, I'm moving your post to C# forum for better supports. Thanks for your understanding.
https://social.msdn.microsoft.com/Forums/en-US /home?forum = csharpgeneral
最诚挚的问候,
唐友军
Best regards,
Youjun Tang
这篇关于如何在C#Windows窗体中使用当前堆栈对象创建新的堆栈对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!