using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace New2
{
class Program
{
static void Main(string[] args)
{
/*数组示例1==================================================
int[] a = new int[5];//初始化数组a,共有5个元素,从a[0]到a[4]
for (int i = 0; i < a.Length; i++)
{
a[i] = i * i;
}
Console.WriteLine("a.Length={0}",a.Length );
for (int i = 0; i < a.Length; i++)
{
Console.WriteLine("a[{0}]={1}",i,a[i]);//{0}代表第一个参数位置,{1}代表第二个参数位置
}
... 阅读全文...



