c언어로 만든 구조체 개념 연습 프로그램
본 자료는 미리보기를 지원하지 않습니다.
닫기
  • 1
  • 2
해당 자료는 0페이지 까지만 미리보기를 제공합니다.
0페이지 이후부터 다운로드 후 확인할 수 있습니다.

본문내용

#include
#include
clrscr();
struct book
{
char title[50];
char author[50];
char publish[50];
int pages;
int price;
};
typedef struct book book;
typedef struct
{
char title[50];
char author[50];
char publish[50];
int pages;
int price;
} software;
int main(void)
{
book yourbook = {"A book on C", "Al Kelly", "홍릉과학출판사", 830, 24000);
book mybook = {"C@PL.com", "강 환수", "학술정보", 530, 20000};
software visualc = {"Visual C++", "MS", "개발도구", 500, 800000};
printf("C 언어 국내 서적\n");
printf("저자 : %s, 제목 : %s, 페이지수 : %d \n", mybook.author, mybook.title, mybook.pages);
printf("출판사 : %s, 가격 : %d \n", mybook.publish, mybook.price);
printf("저자 : %s, 제목 : %s, 페이지수 : %d \n", yourbook.author, yourbook.title, yourbook.pages);
printf("출판사 : %s, 가격 : %d \n", yourbook.publish, yourbook.price);
  • 가격600
  • 페이지수2페이지
  • 등록일2007.10.31
  • 저작시기2007.10
  • 파일형식기타(cpp)
  • 자료번호#434464
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니