일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 벡터와 리스트의 차이
- react native ios 기기 연결
- react native
- node.js
- react native mac
- Expo
- node
- CSS
- html
- C++
- GitHub
- stencil buffer
- javascript
- react
- cyworld
- 스탠실 버퍼 사용
- 싸이월드
- react native typescript navigate
- react native accessible
- c++ using
- react native typescript
- c++ 정보은닉
- 리액트 네이티브 설치 오류
- react native 타입스크립트
- unity stencil buffer
- react native typescript navigation
- 스탠실 버퍼 튜토리얼
- react-native
- 리액트 네이티브 맥
- 스탠실 버퍼 시작
Archives
- Today
- Total
혀니의 이거저거 뿌시기
연결리스트 공부 본문
728x90
<연결 리스트 공부>
Typedef struct s_list
{
void *content;
struct s_list *next; // 이렇게 구조체 내에 똑같은 구조체 형식으로 다음 구조체를 가리키면 연결리스트라고 부름.
} t_list;
Typedef : 구조체의 별칭을 만들어주겠다.
struct:구조체를 만들 것이다.
예제 1
Struct Person{
char name[20];
int age;
char address[100];
}
Int main()
{
struct Person p1;
strcpy(p1.name, “홍길동”);
p1.age = 30;
strcpy(p1.address, “서울시 용산구 한남동”);
printf(“이름 : %s \n”, p1.name);
…
}
요론 식으로.
예제2
Typedef struct _Student{
int age;
char phone_number[14];
} Student;
Int main()
{
Student goorm;
printf(“%d %s”, goorm.age, goorm.phone_number);
…
}
Struct _Student = Student 로 바꿔주는 것이 typedef 이다.
728x90
'LANG > C' 카테고리의 다른 글
파일 디스크립터 공부 (0) | 2021.06.13 |
---|