完成程序并给出结果:
[code="C++"]
class test{
int x;
public:
test(int a){x=a;}
int GetX(){return x;}
}
void main(){
test *p,a[2][3] = {{1,2,3},{4,5,6}};
for(____________;i<=6;i++,p++){
if((p-a[0])%3==0)cout<
coutGetX()<<" ";
}
}
[/code]
我不知道那两个空怎么填,也不知道这题想干什么,那位高手可以指点一二,在下不胜感激