索引代码
来源:互联网 发布:php手册pdf下载 编辑:程序博客网 时间:2024/05/18 07:10
using System;
public delegate void ww();
class a
{public static void write()
{Console.WriteLine("assisn is used");}
}
class hello1
{
private int[] qq;
private int length=0;
private int test;
public int p1{
set
{test=value;
}
get
{return test;
}
}
public hello1(){
length=-1;
}
public const int LENGTH=5;
public void setlength(int length)
{if(length>0){
this.length=length;
qq=new int[length];
}
}
public int getlength(){
return length;
}
//索引 ,this属性
public int this[int i]
{ set{qq[i]=i;
}
get{return qq[i];
}
}
static void Main(string[] args) {
int i;
String[] array1;
array1=new String[args.Length];
array1=args;
Console.WriteLine("hello1");
Console.WriteLine("this reviec {0} args",args.Length);
for (i=0;i<args.Length;i++)
Console.WriteLine("args[{0}]={0}",i,array1[i]);
//foreach(String s in args)
// Console.WriteLine(s);
Console.WriteLine(hello1.LENGTH.ToString()) ;
hello1 hh=new hello1();
hh.setlength(5);
for(i=0;i<5;i++)
hh[i]=i;
for (i=0;i<hh.getlength();i++)
Console.WriteLine(hh[i]);
//hh.write();
hh.test=6;
Console.WriteLine(hh.test);
ww q=new ww(a.write);
q();
}
}
public delegate void ww();
class a
{public static void write()
{Console.WriteLine("assisn is used");}
}
class hello1
{
private int[] qq;
private int length=0;
private int test;
public int p1{
set
{test=value;
}
get
{return test;
}
}
public hello1(){
length=-1;
}
public const int LENGTH=5;
public void setlength(int length)
{if(length>0){
this.length=length;
qq=new int[length];
}
}
public int getlength(){
return length;
}
//索引 ,this属性
public int this[int i]
{ set{qq[i]=i;
}
get{return qq[i];
}
}
static void Main(string[] args) {
int i;
String[] array1;
array1=new String[args.Length];
array1=args;
Console.WriteLine("hello1");
Console.WriteLine("this reviec {0} args",args.Length);
for (i=0;i<args.Length;i++)
Console.WriteLine("args[{0}]={0}",i,array1[i]);
//foreach(String s in args)
// Console.WriteLine(s);
Console.WriteLine(hello1.LENGTH.ToString()) ;
hello1 hh=new hello1();
hh.setlength(5);
for(i=0;i<5;i++)
hh[i]=i;
for (i=0;i<hh.getlength();i++)
Console.WriteLine(hh[i]);
//hh.write();
hh.test=6;
Console.WriteLine(hh.test);
ww q=new ww(a.write);
q();
}
}
- 索引代码
- 博文代码索引
- Lucene建索引代码
- C#索引器-示例代码
- B+树索引伪代码
- C#索引器-示例代码
- 索引建立全过程(代码)
- redis 测试代码+ nosql索引
- solr创建文件索引代码
- GNU Global 代码索引工具
- eclipse 代码索引(Index,代码同步)
- 索引服务调用代码(C#)
- 全文索引——CONTAINS 语法代码
- 读lucene的索引段代码笔记
- IOS代码例子区全区搜索索引
- lucene中查询索引库代码入门
- 【代码笔记】iOS-带索引的tableView
- MongoDB的索引代码实现--BtreeBasedAccessMethod
- Java SE 6.0 桌面API编程探讨
- 指针
- An easy example of using AJAX
- 事件处理程序
- 五句话足以改变人生[转]
- 索引代码
- 在ASP.NET中初学使用存储过程(2)
- IT程序员35岁后的三条活路
- 好好把握人生的12种财富
- 5.22会议记录
- 新资料(by gavin)
- WINDOWS 2000下如何获得用户登录名和密码
- Coding4Fun:开始游戏开发 II
- Web服务新手入门