用数组作为参数的函数,如何赋默认值
CB6
TImage* g_imImage[100];
TImage* g_imActivedImage[100];
int Findindex(TImage* Image,TImage ImageA[]);
我现在想给Findindex()的ImageA[]默认参数值,我的写法如下:
一:Findindex(TImage* Image,TImage* ImageA[] = g_imImage);
二:Findindex(TImage* Image,TImage** ImageA = &g_imImage);
都无法通过...请问指针数组在赋默认值的时候有什么特别的地方吗?