回复 2楼 rjsp
taskchange(fp,task_0(33));在VC下运行过的
task_0函数被解释为函数指针 我想能不能连参数一起传递过去 在VC试了一次 还可以
虽然还不是很理解C的参数传递是传递参数的副本这样写可以用就先这样呗 等理解了 就好说了
程序代码:extern void (*get_hello_world_function(void))(void);
int main(void)
{
get_hello_world_function()();
return 0;
}
程序代码:#include <stdio.h>
static void hello_world(void)
{
printf("Hello, world!\n");
}
extern void (*get_hello_world_function(void))(void)
{
return hello_world;
}