- 1、本文档共8页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
callback函数(Callback function)
callback函数(Callback function)
CALLBACK function
Call (calling) mechanism from the compilation of times has been widely used: prepare a ready-made code, the caller can jump start address code at any time so far, the following address execution after the return jump. CPU prepared a ready-made call instruction, the call stack can protect the scene, after the call is popped from the stack to automatically return to the site address. Borrow stack protection is really a wonderful scene of invention, it makes the callers and callees may not know each other, Yu Shicai became the function and components, we programming so relaxed and happy. If the selection of the largest impact on human invention, after the fire and the wheel, when I push the call stack.
That said, this is not a perfect call mechanism. The callback function is an example. This is for the caller to function like the meal, cooked diners should know, but this is not the case. For example, write a quick sort function for others to call, which must contain the size comparison. Trouble came at this time and do not know is what kind of data - integer, floating-point numbers, strings? So for each type of data to produce a different ranking function. The more common way is a callback function in the function parameters of the address list, and inform the caller: you need to prepare yourself a comparison function, which contains two pointer parameters, function to compare the two pointer data size, and the function returns the value that results. Function to sort function provided by the caller to compare the size, borrow pointer parameters, can be completely regardless of the type of data comparison. The function is called back to the callers caller (its enough), it is called a callback (callback).
The callback function makes the program structure out of many. Windows API functions have many callback function, although there are detailed instructions, so that beginners still confused. I am afraid this is upset. No m
您可能关注的文档
- ansys中不同单元间的连接(Connections between different units in ANSYS).doc
- amd的详细编号(Detailed number of AMD).doc
- amd装机配置大全(Amd installed configuration Daquan).doc
- ansys命令流教学(ANSYS command stream Teaching).doc
- ansys常用命令的详细解释(A detailed explanation of the ANSYS commands).doc
- ansys小净距隧道6m(带后处理注释)(ANSYS small clear distance tunnel 6m (with post-processing notes)).doc
- ansys模拟岩石隧道开挖平面弹塑性分析(Plane elastic plastic analysis of ANSYS simulation of rock tunnel excavation).doc
- ansys盾构开挖建模(Modeling of ANSYS shield excavation).doc
- ansys节点位移提取子程序(ANSYS node displacement extraction subroutine).doc
- ansys隧道命令流(ANSYS tunnel command stream).doc
- 北师大版(2024)八年级数学上册课件 3.2 平面直角坐标系 第2课时 点的坐标特征.pptx
- 北师大版(2024)八年级数学上册课件 3.2 平面直角坐标系 第3课时 建立适当的平面直角坐标系.pptx
- 北师大版(2024)八年级数学上册课件 4.3 一次函数的图象 第1课时 正比例函数的图象及性质.pptx
- (人教A版数学选择性必修三)讲义第15讲7.1.1条件概率(学生版+解析).docx
- (人教A版数学选择性必修三)讲义第19讲8.1成对数据的统计相关性(8.1.1变量的相关关系+8.1.2样本相关系数)(学生版+解析).docx
- 北师大版(2024)八年级数学上册课件 5.2 二元一次方程组的解法 第2课时 加减消元法.pptx
- (人教A版数学选择性必修一)2025年秋季学期讲义第01讲1.1.1空间向量及其线性运算(学生版+教师版).docx
- 北师大版(2024)八年级数学上册课件 5.2 二元一次方程组的解法 第1课时 代入消元法.pptx
- 北师大版(2024)八年级数学上册课件 5.3 二元一次方程组的应用 第3课时 二元一次方程组的应用(3).pptx
- 北师大版(2024)八年级数学上册课件 5.4 二元一次方程与一次函数 第2课时 用二元一次方程组确定一次函数表达式.pptx
文档评论(0)