>> Delete Reply from No. 0 article
No. RE: RE: 추가사항.ㅡㅡ;[두번째문제]

등록 2002-05-09 10:54:00 By localhost     조회 1
이름 김정현    

		#include <stdio.h>
실수했네요....ㅋㅋㅋ
 첫번째꺼는 해결됐으니..두번째꺼는 2차원 배열을 써야합니다....
#include <stdio.h>
const int row=4;
const int col=3;
int main()
{	//이차원 배열에 저장
    int array[row][col]=
        {
           {13,15,16},
           {21,23,4},
           {8,17,43},
           {13,55,36}
         };
    printf("======================================");
    printf("  배열에 저장된 이차원 배월 출력 결과");
    printf("======================================");
	for(int i=0;i<row;i++)
	{
		for(int j=0;j<col;j++)
			printf("	%d",array[i][j]);
			printf("");
	}
	printf("가로 :%d | 세로 :%d",col,row);
	printf("");
	return 0;
}
=======================================================================
                      즐거운 프로그래밍 세계
=======================================================================
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

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