expected primary-expression before 'struct'怎么解决?
定义了一个包含了函数指针的函数程序代码:
char do_function(char(* fp)(struct passenger*),struct passenger*p) { (*fp)(struct passenger*p); }
最后出现这个:
expected primary-expression before 'struct'
请问各位怎么解决?
char do_function(char(* fp)(struct passenger*),struct passenger*p) { (*fp)(struct passenger*p); }