Cpp 16 17 18 19 20 21 22 23 24 25 26 27 28 coutn coutn

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: ========================================"; "<<x.name <<"\t"<< x.job <<"\t"<< x.tel <<"\t"<< x.email; "<<y.name <<"\t"<< y.job <<"\t"<< y.tel <<"\t"<< y.email; "<<z.name <<"\t"<< z.job <<"\t"<< z.tel <<"\t"<< z.email; =====================================================\n"; - 10 - 1) 구조체 사용하기 IT COOKBOOK 구조체 구조체 단위로 값을 대입하기 - 11 - [실습하기 7-3] 구조체 단위로 값 복사하기 IT COOKBOOK [예제 7-3] 7_3.cpp 01 02 03 04 05 06 07 08 09 10 11 12 13 #include<iostream> using namespace std; struct namecard{ char name[20]; char job[30]; char tel[20]; char email[40]; }; void main() { namecard x={ "김주현", "MCSE전문강사", "418-9876","ju.@pride.com"}; namecard y; - 12 - [실습하기 7-3] 구조체 단위로 값 복사하기 IT COOKBOOK [예제 7-3] 7_3.cpp 14 y = x;...
View Full Document

Ask a homework question - tutors are online