• 검색 결과가 없습니다.

[2011 04 14].Part2 Ch2.다차원배열이란무엇인가

N/A
N/A
Protected

Academic year: 2021

Share "[2011 04 14].Part2 Ch2.다차원배열이란무엇인가"

Copied!
15
0
0

로드 중.... (전체 텍스트 보기)

전체 글

(1)

Intelligence Modeling Lab.

School of Information and Communication Engineering, Sungkyunkwan University

컴퓨터공학실습 1

Part 2

Ch2. 다차원 배열이란 무엇인가

2011-04-14

1

(2)

목차

다차원 배열이란

(3)

Intelligence Modeling Lab.

School of Information and Communication Engineering, Sungkyunkwan University

다차원 배열이란

1 차원 배열과 다차원 배열의 비교

3

(4)

다차원 배열이란

2 차원 배열의 선언

( 자료형 : 배열의 자료형 ,

배열 이름 : 배열의 이름 ,

(5)

Intelligence Modeling Lab.

School of Information and Communication Engineering, Sungkyunkwan University

다차원 배열이란

2 차원 배열의 선언

(6)

다차원 배열이란

2 차원 배열의 데이터 저장 / 참조

(7)

Intelligence Modeling Lab.

School of Information and Communication Engineering, Sungkyunkwan University

다차원 배열이란

2 차원 배열의 초기화

7

int array1[4][3] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};

int array2[4][3] = {1, 2, 3, 4, 5};

(8)

다차원 배열이란

(9)

Intelligence Modeling Lab.

School of Information and Communication Engineering, Sungkyunkwan University

다차원 배열이란

2 차원 배열 선언 시 주의점

배열의 길이를 설정하지 않는 경우에도 열의 길이 ( 개수 )

는 반드시 설정해야 함

9

(10)

다차원 배열이란

(11)

Intelligence Modeling Lab.

School of Information and Communication Engineering, Sungkyunkwan University

2 차원 배열의 주소와 값의 참조

& 는 2 차원 배열 요소의 주소를 참조하는 연산자

(12)

2 차원 배열의 주소와 값의 참조

2 차원 배열의 다양한 주소 표현

2 차원 배열의 이름은 배열의 시작 주소

2 차원 배열의 행의 요소는 행을 대표하는 주소

(13)

Intelligence Modeling Lab.

School of Information and Communication Engineering, Sungkyunkwan University

2 차원 배열의 주소와 값의 참조

2 차원 배열의 다양한 주소 표현

13

ar-ray

=

*(array+

0)

=

*(ar-ray+1)

=

(14)

2 차원 배열의 주소와 값의 참조

*

는 2

차원 배열 요소에 저장된 값을 참조

arr[i][j] == *&arr[i][j]

== * ( arr[i] + j )

== * ( *(arr+i) +j)

(15)

Intelligence Modeling Lab.

School of Information and Communication Engineering, Sungkyunkwan University

2 차원 배열의 주소와 값의 참조

15

참조

관련 문서

따라서 x=1에서 연속이지만 미분가능하지 않은

Energy Intelligence, Petroleum Intelligence Weekly, December 11, 2011.. Energy Intelligence, Petroleum Intelligence Weekly,

Hull Form Modeling 2009 Fall, Computer Aided Ship Design – Part2..

Department of Naval Architecture and Ocean Engineering, Seoul National University of College of Engineering.. Ship Motion & Wave Load

School of Computer Science & Engineering Seoul

• In a attraction-dominant condition, when a gas expands, some kinetic energy of them must be converted to potential energy to reach greater

School of Mechanical Systems Engineering Chonnam National University..

 캐리어 비교 방식 SVPWM 방법은 전압-시간 평균 이론에 바탕을 둔 SVPWM 방법의 특성을 그대로 가지면서 그 구현이 매우 간편하고 게이트에 실제로 인가되는