没有合适的资源?快使用搜索试试~ 我知道了~
C#索引器的定义代码(可以写成实验)
需积分: 10 2 下载量 142 浏览量
2010-12-22
13:24:34
上传
评论
收藏 2KB TXT 举报
温馨提示
试读
3页
C#索引器定义代码(可以写成实验) 运行成功的,不过要注意实验里的类名和命名空间哦
资源推荐
资源详情
资源评论
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indexerapp2
{
class Program
{
static void Main(string[] args)
{
Collegeclass c1 = new Collegeclass(2);
for (int i = 0; i < 2; i++)
{
c1[i] = new Student(i);
}
for (int j = 0; j < 2; j++)
{
c1[j].tostring(j);
}
Console.ReadLine();
}
}
public class Collegeclass
{
private Student[] thecollegeclass;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indexerapp2
{
class Program
{
static void Main(string[] args)
{
Collegeclass c1 = new Collegeclass(2);
for (int i = 0; i < 2; i++)
{
c1[i] = new Student(i);
}
for (int j = 0; j < 2; j++)
{
c1[j].tostring(j);
}
Console.ReadLine();
}
}
public class Collegeclass
{
private Student[] thecollegeclass;
资源评论
yjc668668
- 粉丝: 1
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功