[e]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections;
using System.Diagnostics;
struct Rect
{
int a;
int b;
int c;
int d;
}
namespace LISTARRAY
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
const string Lin = "零";
private void Form1_Load(object sender, EventArgs e)
{
this.Text = "演示ListArray应用";
ArrayList CodeArray = new ArrayList(); //动态数组
Random Random =new Random();
int index = Random.Next(1,100);
object Object = new object();
ListBox listBoxA = new ListBox();
listBoxA = this.listBox1;
for (int i = 0; i < index; ++i)
{
string 样本采集器;
样本采集器 = i.ToString();
Object = swap(样本采集器.ToCharArray());
switch ((int)Object)
{
case 1:
CodeArray.Add(cmcc(样本采集器, (int)Object));
break;
case 2:
CodeArray.Add(cmcc(样本采集器, (int)Object));
break;
default:
CodeArray.Add(cmcc(样本采集器, (int)Object));
break;
}