lz的问题好像应该是一样的吧?
我的验证方法如下:
void k(int);
char * a ;
char (*b) ;
f(a);-------------------(1)
f(b);-------------------(2)
(1)(2)处的错误均为:
E:\code\ticket\ticket.cpp(66) : error C2664: 'k' : cannot convert parameter 1 from 'char *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
E:\code\ticket\ticket.cpp(67) : error C2664: 'k' : cannot convert parameter 1 from 'char *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast