/*程序检查数组a中有多少值大于数组b(比较只在同样下标的数字之间进行).*/ #include
using namespace std; void compareArray(int arr1[], ________, int size, int _______) { int i; for (i = 0; i < size; i++) { if (arr1[i] > arr2[i]) { (*num)++; } } } int main() { int num1[5] = { 5, 6, 7, 2,0 }, num2[5] = { 1,5,70,9,2 }; int count = 0; compareArray(__________, ___________, 5, &count); cout << "数组A中有" << count << "个数字比数组B中对应的数字大" << endl; return 0; }