Skip to content

Instantly share code, notes, and snippets.

View tiger1710's full-sized avatar
🎯
Focusing on Problem Solving!!!

DeokHwan Kim tiger1710

🎯
Focusing on Problem Solving!!!
View GitHub Profile

C에서의 구조체

들어가면서

코딩 꼭 같이 해보면서 해보세요.. ㅠㅠ 그럼 더 이해 잘 될것 같네요..

1. 배경

만약 학생을 데이터로 표현하고 싶다고하면, 이름, 학번, 학년을 데이터로 저장해야 한다.

//avl트리 책에 있는 소스 수정
#include <stdio.h>
#include <stdlib.h>
typedef struct avl_node {
struct avl_node *left_child, *right_child; /* Subtrees. */
int data; /* Pointer to data. */
}avl_node;
@tiger1710
tiger1710 / main.cpp
Last active November 23, 2018 05:12
Sample
#include <iostream>
using namespace std;
int main(void) {
cout << "Hello, World!" << endl;
return 0;
}