it/programming
#include #include struct node{ int data; struct node *next; }; int node_find(struct node *head, int key); void list_print(struct node *); void main(){ struct node a, b, c; struct node *head; int find, key; head=&a; a.data = 10; b.data = 20; c.data = 30; a.next= &b; b.next = &c; c.next = NULL; list_print(head); while(key!=-1) { printf("\n>>데이터 찾기\n찾고자 하는 데이터 : "); scanf("%d",&key); find = node_fi..
it/programming
#include #include #include struct node { int data; struct node *next; }; struct node *node_insert(struct node *head, int cur_data,int insert_data); void list_print(struct node *); void main(){ struct node a, b, c; struct node *head; head=&a; a.data = 10; b.data = 20; c.data = 30; a.next= &b; b.next = &c; c.next = NULL; list_print(head); head = node_insert(head, 20, 5); list_print(head); } void l..
it/programming
#include #include struct node { int data; struct node *next; }; struct node *node_add(struct node *head, int add_data); void list_print(struct node *); void main(){ struct node a, b, c; struct node *head; head=&a; a.data = 10; b.data = 20; c.data = 30; a.next= &b; b.next = &c; c.next = NULL; list_print(head); head = node_add(head, 50); list_print(head); } void list_print(struct node *head){ for(..
it/programming
#include #include struct node { int data; struct node *next; }; struct node *create2(); struct node *node_del(struct node *head, int del); void list_print(struct node *); void main() { struct node a, b, c; struct node *head; head=&a; a.data = 10; b.data = 20; c.data = 30; a.next= &b; b.next = &c; c.next = NULL; list_print(head); head = node_del(head,10); list_print(head); head = node_del(head,20..
단축키
내 블로그
내 블로그 - 관리자 홈 전환 |
Q
Q
|
새 글 쓰기 |
W
W
|
블로그 게시글
글 수정 (권한 있는 경우) |
E
E
|
댓글 영역으로 이동 |
C
C
|
모든 영역
이 페이지의 URL 복사 |
S
S
|
맨 위로 이동 |
T
T
|
티스토리 홈 이동 |
H
H
|
단축키 안내 |
Shift + /
⇧ + /
|
* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.