Cpp 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16

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: t;"; cin>>man.job; -7- IT COOKBOOK 1) 구조체 사용하기 IT COOKBOOK [예제 7-1] 7_1.cpp 17 cout<<" 연락처를 입력하세요=>"; 18 cin>>man.tel; 19 cout<<" 이메일을 입력하세요=>"; 20 cin>>man.email; 21 22 cout<<"\n 입력받은 데이터를 출력합니다. "; 23 cout<<"\n 이름 \t 직업 \t 연락처 \t 이메일 "; 24 cout<<"\n ===================================================="; 25 cout<<"\n "<<man.name<<"\t "<< man.job << "\t "<< man.tel <<"\t "<< man.email; 26 cout<<"\n ===================================================="; 27 cout<<"\n sizeof(namecard) => "<<sizeof(namecard); 28 cout<<"\n 구조체 변수의 메모리 사이즈 =>"<<sizeof(namecard)<<"\n"; 29 } -8- 1) 구조...
View Full Document

This document was uploaded on 01/19/2014.

Ask a homework question - tutors are online