'2008/03'에 해당되는 글 2건
2008/03/26 11:31
http://proneer.tistory.com/entry/TCP-HEADER
Layer4, Transport Layer Packet Header
OSI 레이어 7계층 중, 4번째 트랜스포트 계층의 TCP 헤더
Layer4, Transport Layer Packet Header
OSI 레이어 7계층 중, 4번째 트랜스포트 계층의 TCP 헤더
'학교 과제 > 네트워크 구축실무' 카테고리의 다른 글
| 네프 080521 VTP (0) | 2008/05/21 |
|---|---|
| 080514 네구.. (0) | 2008/05/14 |
| 080514 네구 (0) | 2008/05/14 |
| STP 관련, STP (Spanning Tree Protocol)' (0) | 2008/04/16 |
| 스위치 5대 기능 (2) | 2008/04/02 |
| transport layer Packet Header (0) | 2008/03/26 |
Trackback Address :: http://lunics.net/trackback/42
2008/03/20 14:52
[Etc]
#include<stdio.h>
#include<stdlib.h>
/*1.연결리스트의 자료형*/
typedef struct NODE{
int key;
struct NODE *next;
}node;
node *head, *tail;
/*2. 연결리스트의 초기화 */
void init_list(void){
head = (node*)malloc(sizeof(node));
tail = (node*)malloc(sizeof(node));
head->next = tail;
tail->next = tail;
}
/*순차적으로 입력*/
node ordered_list(int k){
node *p;
node *s;
node *n_new;
p = head;
s = p->next;
while(s->key <=k && s!=tail){
p= p->next;
s= p->next;
}
n_new=(node*)malloc(sizeof(node));
n_new->key = k;
n_new->next = s;
p->next = n_new;
return *n_new;
}
void print_list(node *t){
printf("\n");
while(t!=tail){
printf(" %d",t->key);
t=t->next;
}
}
void main(){
init_list();
ordered_list(10);
ordered_list(5);
ordered_list(2);
print_list(head->next);
}
'Etc' 카테고리의 다른 글
| 과제 (0) | 2008/03/20 |
|---|---|
| 트랜스포머 바탕화면 1600x1200 (0) | 2007/08/12 |
Trackback Address :: http://lunics.net/trackback/41



