C
cplusplusquestion
I have code in main function:
int main(){
int a[20];
int b[20][20];
for(int i=0; i<20; i++)
a=0;
.......
AClass a(a, b, c);
....
}
For AClass:
class AClass{
private:
int* a1;
int* b1[20];
.....
public:
AClass(int x[], int y[][20], int z);
}
AClass::AClass(int x[], int y[][20], int z): a1(x), c1(z){
for(int i=0; i<MAX; ++i)
edge=e;
int main(){
int a[20];
int b[20][20];
for(int i=0; i<20; i++)
a=0;
.......
AClass a(a, b, c);
....
}
For AClass:
class AClass{
private:
int* a1;
int* b1[20];
.....
public:
AClass(int x[], int y[][20], int z);
}
AClass::AClass(int x[], int y[][20], int z): a1(x), c1(z){
for(int i=0; i<MAX; ++i)
edge=e;