Cpp 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

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: ut( ); - 20 - IT COOKBOOK [실습하기 7-5] 구조체 단위 입력함수 작성하기 [예제 7-5] 7_5.cpp 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 void main() { namecard x, y, z; x=structInput( ); y=structInput( ); z=structInput( ); cout<<"\n 이름 직업 연락처 이메일 "; cout<<"\n==========================================="; structPrn(x); structPrn(y); structPrn(z); cout<<"\n========================================\n"; } - 21 - IT COOKBOOK [실습하기 7-5] 구조체 단위 입력함수 작성하기 IT COOKBOOK [예제 7-5] 7_5.cpp 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 void structPrn(namecard temp) // 함수의 정의 { cout<<"\n"<<temp.name<<"\t"<<temp.job<<"\t"<<temp.tel<<"\t"<<temp.email; } namecard structInput( ) { namecard temp; cout<<"\n이름을 입력하세요=>"; cin>>temp.name; cout<<"직업을...
View Full Document

This document was uploaded on 01/19/2014.

Ask a homework question - tutors are online