精易论坛

标题: C#高级编程 动态数组 [打印本页]

作者: stillness    时间: 2012-11-30 20:25
标题: C#高级编程 动态数组
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;

  9. namespace ArrayList
  10. {
  11.     public partial class Form1 : Form
  12.     {
  13.         public Form1()
  14.         {
  15.             InitializeComponent();
  16.         }

  17.         private void Form1_Load(object sender, EventArgs e)
  18.         {
  19.             System.Collections.ArrayList A = new System.Collections.ArrayList();
  20.             for (int i = 1; i <= 88; i++)
  21.             {
  22.                 A.Add(i);
  23.             }
  24.             this.Text = (A.Count).ToString();

  25.         }
  26.     }
  27. }
复制代码


作者: 记忆是座荒岛    时间: 2012-11-30 20:28
       刷啊! 用力刷啊!!!




欢迎光临 精易论坛 (https://125.confly.eu.org/) Powered by Discuz! X3.4