函数指针
来源:互联网 发布:赵薇戴立忍事件 知乎 编辑:程序博客网 时间:2024/05/16 23:49
/*只是最简单的测试函数指针*/
#include<stdio.h>
voidfun(void(*f)(void))
{
(*f)();
}
voidfun1(void)
{
printf("This is the function 1 !/n");
}
voidfun2(void)
{
printf("This is the function 2 !/n");
}
intmain(void)
{
fun(fun1);
fun(fun2);
}
voidfun(void(*f)(void))
{
(*f)();
}
voidfun1(void)
{
printf("This is the function 1 !/n");
}
voidfun2(void)
{
printf("This is the function 2 !/n");
}
intmain(void)
{
fun(fun1);
fun(fun2);
}
- 指针函数 函数指针
- 函数指针/指针函数
- 指针函数&函数指针
- 函数指针 指针函数
- 函数指针 指针函数
- 指针函数,函数指针
- 函数指针,指针函数,
- 指针函数,函数指针
- 函数指针 指针函数
- 函数指针、指针函数
- 指针函数&函数指针
- 函数指针 指针函数
- 函数指针 指针函数
- 函数指针&指针函数
- 指针函数 函数指针
- 指针函数 &函数指针
- 函数指针&指针函数
- void指针 函数指针
- 子字符串的查找
- 应聘时可能的问题
- 链式堆栈
- DataList控制字符串长度
- 秋夜——鲁迅
- 函数指针
- 关于野指针
- 自定义控件之三级联动
- Struts1文件上传
- 利用MFC编程在工具条中增加组合框控件
- 结构化程序设计
- c语言程序段分类大全
- 如何进行良好的程序设计(1))
- 堆和栈的区别