06장_배열과%20포인터

Cpp 01 includeiostreamh 02 void main 03 04 int a5

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout<<"\n--------------------------------------\n"; 27 for(r= 0; r<ROW; r++){ 28 for(c= 0; c<COL; c++) 29 cout<<" "<<a[r][c]; 30 cout<<"\n"; 31 } 32 } - 15 - IT COOKBOOK [실습하기 6-7] 배열 원소의 주소 알아보 [예제 6-7] 6_7.cpp 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 #include<iostream> using namespace std; void main() { int a[5] = {10, 20, 30, 40, 50}; int i; cout << "원소의 값을 출력 \n"; for(i=0; i<5; i++) cout << a[i] << " "; cout << "\n"; cout << "원소의 주소 값을 출력 \n"; for(i=0; i<5; i++) cout << &a[i] << " " ; cout << "\n"; } - 16 - IT COOKBOOK [실습하기 6-8] 배열명 값을 출력하기 IT COOKBOOK [예제 6-8] 6_8.cpp 01 02 03 04 05 06 07 08 09 #include<iostream> using namespace std; void main() { int a[5] = {10, 20, 30, 40,...
View Full Document

This document was uploaded on 01/19/2014.

Ask a homework question - tutors are online