|
이차원 동적배열의 선언과 방법을 알고 싶습니다.
delete두여
일차원 배열은
complex<double> *pT = new complex<double> [array];
for(int i=0 ; i<array ; i++)
{
cout << pT[i] << endl;
}
delete [] pT;
하잖아요
이차원 배열은 어떻게 해야하는지 모르겠어요
complex<double> **pT = new comples<double> [array][array];
???왜 틀리는 것인가요
글구여 위의 예제는 2차원 배열의 크기가 같을 경우인데여 만약에
크기가 다른 서로 다른 2차원 배열이라면 어떻게 해야하나요
|