回电功能...... [英] call back functions...

查看:77
本文介绍了回电功能......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一些关于如何在C中写回电话的全面教程

可以帮助我吗?


- 同样的橡木。

I am looking for some comprehensive tutorials on how to write call
back functions in C. Can anyone help me?

- sameer oak.

推荐答案

sa *** *****@gmail.com 写道:

我正在寻找一些关于如何写电话的综合教程

回到C中的功能。任何人都可以帮助我吗?
I am looking for some comprehensive tutorials on how to write call
back functions in C. Can anyone help me?



以与编写

任何其他函数相同的方式编写回调函数。没有什么是不同的。关于

回调函数,什么都没有。这只是一个功能。


-

Eric Sosman
es ***** @ acm-dot-org.inva lid

Write a callback function in the same way you write
any other function. There is nothing "different" about a
callback function, nothing at all. It''s just a function.

--
Eric Sosman
es*****@acm-dot-org.invalid


2007年6月28日星期四02 :57:06 -0700,sa ******** @ gmail.com

< sa ******** @ gmail.comwrote:
On Thu, 28 Jun 2007 02:57:06 -0700, "sa********@gmail.com"
<sa********@gmail.comwrote:

>我正在寻找一些关于如何用C编写回调函数的全面教程。任何人都可以帮助我吗?
>I am looking for some comprehensive tutorials on how to write call
back functions in C. Can anyone help me?



这取决于谁在调用你的函数以及你想要它们为你做什么的

函数。可能最简单的例子是传递给qsort的比较

函数。

中至少应该有一个例子,你的参考文件将向你展示如何获得传递

作为通用指针并返回结果的参数。还有其他任何需要

你的详细信息。

删除del电子邮件

It depends on who is calling your function and what you want the
function to do for them. Probably the simplest example is the compare
function passed to qsort. There should be at least one example in
your reference which will show you how to obtain the arguments passed
as generic pointers and return a result. Anything else will require
more detail from you.
Remove del for email


sa ******** @ gmail.com skrev:
sa********@gmail.com skrev:

我正在寻找一些关于如何写电话的综合教程

返回C中的功能。任何人都可以帮助我吗?


- 相同的橡木。
I am looking for some comprehensive tutorials on how to write call
back functions in C. Can anyone help me?

- sameer oak.



查看此处
http://en.wikipedia.org/wiki/Callback_(computer_science


这篇关于回电功能......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆