最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
递归枚举排列、组合的C#源码
时间:2022-07-02 11:05:59 编辑:袖梨 来源:一聚教程网
大约是2001年时候用VS7 beta写的一点东西了,现在回看起来不是一般的幼稚。。。好处是还能运行:),看到CSDN上有朋友要C# 的代码,我也不揣简陋,献丑了。(转换成VS03的工程了)
Combinatorics.cs代码清单
using System;
using System.Collections;
using System.Data;
///
/// 组合数学函数集
///
public class Combinatorics
{
#region 公共函数
///
/// 把二维整形数组转换为数据表
///
public static DataTable TwoDemisionIntArrayToDataTable(int[, ]source)
{
DataTable dt = new DataTable();
DataRow dr;
int i, j;
int b1 = source.GetUpperBound(0), b2 = source.GetUpperBound(1); //获取二维表的各维长度
Combinatorics.cs代码清单
using System;
using System.Collections;
using System.Data;
///
/// 组合数学函数集
///
public class Combinatorics
{
#region 公共函数
///
/// 把二维整形数组转换为数据表
///
public static DataTable TwoDemisionIntArrayToDataTable(int[, ]source)
{
DataTable dt = new DataTable();
DataRow dr;
int i, j;
int b1 = source.GetUpperBound(0), b2 = source.GetUpperBound(1); //获取二维表的各维长度
相关文章
- 修真无限轮回手游轮回世界探索攻略修真无限轮回手游深度轮回机制解析 09-02
- 遮天帝路争锋星空古路探索与通关全流程攻略 09-02
- 末日安全屋血狼势力通关攻略|全阶段任务流程与关键决策指南 09-02
- 末日安全屋晶核快速获取攻略末日安全屋高效刷取晶核的实用做法 09-02
- TPLINK TLWR842+ 无线路由器网速限制设置指南 09-02
- 剑星卢瓦高层全收集如何跑图 09-02