【填空题】下面程序的功能是输入10个整数,统计其中正数(neg)、负数(pos)和O(zero)的个数并将三者输
【填空题】下面程序的功能是输入10个整数,统计其中正数(neg)、负数(pos)和O(zero)的个数并将三者输出。请填空使程序完整、正确。 #include <iostream> using namespace std; int neg = 0, pos = 0, zero = 0; void self(int num) { if (num> 0) neg++; else if (num = 0)pos++; else (1____); } void main() { int i, a[10]; for (i =0; i<10; i++) { cin>> a[i]; self((2____)); } cout <<"neg=" (3____) ",pos="<< (4____) <<" ,zero=" << (5____); }<br><p class=" answer">
85、【填空题】写出下面程序执行后的运行结果 #include<iostream> using namespace std; int main____ { char arr[2][4]; strcpy____; strcpy____; arr[0][3]=’&’; cout<<arr[0]<<endl; return 0;>