木头象

人生如棋局

导航

2004年2月2日 #

从函数指针到代理(C#代理入门)

摘要: // c中的函数指针,可能更好理解#include "stdafx.h"#include "stdio.h"#include "stdlib.h"int (* Test) (int l); //定义函数指针//以下定义了两个处理函数,程序会根据情况调用不同的过程int Add(int t){ return t+ t;}int Mut(int t){ return t*t;}//把函数做参数 int... 阅读全文

posted @ 2004-02-02 11:23 木头象 阅读(4585) 评论(0) 推荐(1) 编辑