看看哪里错了#include using namespace std;int getArrayLen(int &array){ return (sizeof(array)/sizeof(array[0]));}int main(){int a[]={2,4,24,45,4,3,2};cout

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 18:40:56
看看哪里错了#includeusingnamespacestd;intgetArrayLen(int&array){return(sizeof(array)/sizeof(array[0]));}in

看看哪里错了#include using namespace std;int getArrayLen(int &array){ return (sizeof(array)/sizeof(array[0]));}int main(){int a[]={2,4,24,45,4,3,2};cout
看看哪里错了
#include
using namespace std;
int getArrayLen(int &array)
{
return (sizeof(array)/sizeof(array[0]));
}
int main(){
int a[]={2,4,24,45,4,3,2};
cout

看看哪里错了#include using namespace std;int getArrayLen(int &array){ return (sizeof(array)/sizeof(array[0]));}int main(){int a[]={2,4,24,45,4,3,2};cout
#include
using namespace std;
int getArrayLen(int array[])////数组
{
return (sizeof(array)/sizeof(array[0]));
}
int main(){
int a[]={2,4,24,45,4,3,2};
cout