递归枚举排列、组合的C#源码__教程 |
|
日期:2007-5-20 0:37:56 人气:356 [大 中 小] |
|
|
|
elements.RemoveAt(index); for (int i = 0; i < count; i ++ ) reslut[x, y + i] = val; return val; } #endregion }
测试窗体frmTest.cs代码清单:
using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data;
namespace CombinatoricsLib { /// /// Form1 的摘要说明。 /// public class frmTest : System.Windows.Forms.Form { private System.Windows.Forms.DataGrid gridShow; private System.Windows.Forms.NumericUpDown numM; private System.Windows.Forms.Button btnGo; private System.Windows.Forms.DomainUpDown domainFunction; private System.Windows.Forms.StatusBar statusBar1; private System.Windows.Forms.StatusBarPanel panelErrMsg; private System.Windows.Forms.NumericUpDown numN; /// /// 必需的设计器变量。 /// private System.ComponentModel.Container components = null;
public frmTest() { // // Windows 窗体设计器支持所必需的 |
|
出处:本站原创 作者:佚名 |
|
|