让我说我有一个像这样的原型函数:int func(int * a),它接受一个数组作为参数.
int func(int * a)
如果没有编译器在任何地方显示错误,我该怎么做:func({1,1,1,1})
c++ arrays
arrays ×1
c++ ×1