Pridecom namecard y 12 7 3 it cookbook

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: 체 사용하기 IT COOKBOOK 구조체 구조체 변수 초기화 -9- [실습하기 7-2] 구조체 초기화하기 IT COOKBOOK [예제 7-2] 7_2.cpp 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 #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"}, y={ "박혜경", "웹마스터", "551-6986","hk.@pride.com"}, z={ "김동식", "기획A팀대리", "318-3961","ds.@pride.com"}; cout<<"\n cout<<"\n cout<<"\n cout<<"\n cout<<"\n cout<<"\n } 이름 직업 연락처 이메일 "; =============...
View Full Document

This document was uploaded on 01/19/2014.

Ask a homework question - tutors are online