问答题
有C++程序如下:
#include<iostream>
using namespace std;
void main()
int a(5),b(6),i(0),j(0);
switch(a)
case 5:switch(b)
case 5:i++;break;
case 6:j++;break;
case 6:i++;j++;break;
default:i++;j++;
cout<<i<<“,”<<j<<end1;
请写出输出结果。
【正确答案】
输出结果为1,2。
【答案解析】
提交答案
关闭