class Subject{
char sub[4][2][20];
public:
Subject(){
char sub[4][2][20]={
{{\"1001\"},{\"C언어\"}},
{{\"1002\"},{\"C++언어\"}},
{{\"1003\"},{\"C#언어\"}},
{{\"1004\"},{\"JAVA언어\"}}
};
}
void showSub(){
int len = sizeof(sub)/sizeof(*sub);
for(int i=0 ; i<len; i++){
for(int j=0; j<2; j++){
cout<<sub[i][j]<<\" \";
}
cout<<endl;
}
}
};
int main(void){
Subject a;
a.showSub();
return 0;
}
왜 쓰레기 값이 나오지? -_- 알려줭
초기화 하는법 다시 파고 오셈