using namespace std;
The class Array {
Int ar [2] [3].
Public:
Array () {}
Array (int [], [3] aa);
Void the show ()
{
For (int j=0; j<2; J++)
{the for (int I=0; i<3; I++)
{cout
}}
Array operator ^ (Array & amp;);
Array (const Array & amp; B)
{int I, j;
for(i=0; i<3; I++)
{the for (j=0; j<2; J++)
[j] [I]={ar b.a r [j] [I];
}
}
}
};
Array: : Array (int [], [3] aa)
{
Int I, j;
for(i=0; i<3; I++)
{
for(j=0; j<2; J++)
[j] [I]={ar aa [j] [I]; }
}
}
Array an Array: : operator ^ (Array & amp; C2)
{
Array c;
Int I, j;
for(i=0; i<3; I++)
{
For (j=0; j<2; J++)
[I] [j] {c.a. r=ar [I] [j]. ^ c2 ar [I] [j]; }
}
Return the c;
}
Int main ()
{int I, j;
Int a [2] [3].
Int b [2] [3].
for(i=0; i<3; I++)
{
for(j=0; j<2; J++)
{cin> A, [I] [j]. }
}
for(i=0; i<3; I++)
{
for(j=0; j<2; J++)
{cin> B [I] [j]; }
}
Array A (A), B (B), C (A ^ B);
C.s. how ();
return 0;
}
CodePudding user response:
Circulation is wrong, I should be <2, j is less than 3