>> Delete No. 64158 article
No. [질문] C++에서 동적배열 선언이 이상해요.

등록 2003-01-08 17:39:00 By localhost     조회 5
이름 로라    

		안녕하세요.
C++에서 동적배열을 배웠는데 이런 에러가 나서요.
 소스:
      int *Array;
      Array = new int[10][10]
 에러메시지:
 cannot convert `int (*)[10]' to `int*' in assignment
  그래서 이렇게 고쳐봤는데
소스:
      int *Array;
      *Array = new int[10][10]
 에러메시지:
 invalid conversion from `int (*)[10]' to `int'
   또 이렇게도 고쳐봤어요.
소스:
      int *Array = new int[10][10]
 에러메시지:
 cannot convert `int (*)[10]' to `int*' in initialization
  이게 왜이래요?--동적배열 어렵당.
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved