struct student char name30 int height int weight

  • Slides: 28
Download presentation

중간점검 : struct student { char name[30]; int height; int weight; char name; };

중간점검 : struct student { char name[30]; int height; int weight; char name; }; struct student s 1; v v typedef struct student { char name[30]; int height; int weight; }; struct rectangle { double width; double height; }; typedef rectangle rect; 9 v 문제점은? struct rectangle { int width = 100; int height = 20; } r; struct rectangle { int width; int height; } r; r. width = 100; r. height = 20; v Perfect C

예제 소스 v 예제 16 -7(578쪽) complexfunction. c 함수 paircomplex 1()과 paircomplex 2()를 구

예제 소스 v 예제 16 -7(578쪽) complexfunction. c 함수 paircomplex 1()과 paircomplex 2()를 구 하는 프로그램 18 Perfect C

메인 함수 § 메인 함수에서는 카드의 수만큼 배열 deck[52]를 선언하여 이 배 열을 함수

메인 함수 § 메인 함수에서는 카드의 수만큼 배열 deck[52]를 선언하여 이 배 열을 함수 filldeck(), shuffle(), deal()의 인자로 이용 27 card deck[52]; int cnt = 2; filldeck(deck); shuffle(deck); printf("카드 게임에 몇 사람이 참가합니까? >> "); scanf("%d", &cnt); printf("n"); deal(deck, cnt); return 0; Perfect C