2006-07-10 23:35
2006-07-11 11:21
2006-07-11 13:27
using System;
namespace ConsoleApplication2
{
/// <summary>
/// Class1 的摘要说明。
/// </summary>
class Class1
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(string[] args)
{
readline rl=new readline(Console.ReadLine);
string str=rl();
Console.WriteLine(str);
}
}
public delegate string readline();
}

2006-07-11 16:29
虽然足以完成要求.
用到委托的知识.
要懂这要学到面向对象编程的章节以后



[此贴子已经被作者于2006-7-12 13:58:46编辑过]

2006-07-11 22:35
using System;
namespace ConsoleApplication2
{
/// <summary>
/// Class1 的摘要说明。
/// </summary>
class Class1
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(string[] args)
{
readline rl=new readline(Console.ReadLine);//实例委托并传递函数参数
string str=rl();//使用委托
Console.WriteLine(str);
}
}
public delegate string readline();//声明一个委托
}
怎么会没有用到委托呢

2006-07-12 13:23
2006-07-12 14:32

2006-07-12 21:49

2006-07-13 10:20