c++中求数组的长度 数组长度=sizeof(数组名)/sizeof(数组类型) #include<iostream> using namespace std; int main() { int intArr[] = { 1,2