类构造函数的调用解决方法

类构造函数的调用
定义类,用构造函数初始化,要用一个二位数组,
就是在形参有个二维数组,
实参也是一个二维数组

------解决方案--------------------
#include "stdio.h"
class A {
public:
A(int b);
void output();
private:
int a[2][2];
};

A::A(int b)
{
int i,j;
for(i=0;i<2;i++)
for(j=0;j<2;j++)
a[i][j]=b;
}

void A::output()
{
int i,j;
for(i=0;i<2;i++)
for(j=0;j<2;j++)
printf("%d\t",a[i][j]);
}

void main()
{
A a(1);
a.output();
}
------解决方案--------------------
C/C++ code

typedef struct Str
{
   char[4][50];
}str;
AnsSys question(str str1))