043. 구조체 이해하기043. 구조체 이해하기
Posted at 2010. 11. 22. 04:16 | Posted in Computer/초보자를 위한 C 언어 300제
#include <stdio.h>
struct tagSungJuk
{
int kor;
int eng;
int math;
};
main()
{
struct tagSungJuk SJ;
SJ.kor = 100;
SJ.eng = 95;
SJ.math = 99;
printf( "총합 = %d", SJ.kor + SJ.eng + SJ.math );
}
'Computer > 초보자를 위한 C 언어 300제' 카테고리의 다른 글
| 045. 열거형 이해하기 (0) | 2010.11.22 |
|---|---|
| 044. 공용체 이해하기 (0) | 2010.11.22 |
| 042. 널(NULL) 문자 이해하기 (0) | 2010.11.22 |
| 041. 포인터 이해하기 (0) | 2010.11.13 |
| 040. 메모리 이해하기 (0) | 2010.11.13 |
