로그인 | 회원가입 | 주문 조회
문서 [C강좌] C언어 structure 소스
글쓴이 N.T.C 등록일 2007-05-16 조회 2,440
#include "conio.h" #include "stdio.h" struct saram{ char *irum; int nai; char pi; int ki; float mommugae; }; void myunjup(struct saram testperson){ printf("이름:%s 나이:%d 혈액형:%c 키:%c 몸무게:%f", testperson.irum, testperson.nai, testperson.pi, testperson.ki, testperson.mommugae); } void main(void){ struct saram a; int i; a.irum = "Kim, Yong Gung"; a.nai = 10; a.pi='o'; a.ki = 182; a.mommugae = 84; myunjup(a); getch(); }
다음글 [기초전자실험] 0강 전자 공학도로서 걸어야 할 길
이전글 [전자공학실험] 간단한 전원용 레귤레이터 회로입니다.