블로그
-
C언어 file관련 함수 (fgets, fputs, fprintf, fscanf)
#fprintf (정형화된 format으로) 파일 쓰기 int fprintf(FILE *, string format ...)
blog.naver.com · 2018.10.05
-
정수 배열 스택 프로그램
int is_full() { return (top == (MAX_STACK_SEIZ - 1)); } void push(element item) { if (is_full()) { fprintf stderr, "스택 포화 에러\n"); return; } else { stack[++top] = item; } } element pop() { if (is_empty()) { fprintf
blog.naver.com · 2018.08.02
-
구조체 배열 스택 프로그램
int is_full() { return (top == (MAX_STACK_SEIZ - 1)); } void push(element item) { if (is_full()) { fprintf stderr, "스택 포화 에러\n"); return; } else { stack[++top] = item; } } element pop() { if (is_empty()) { fprintf
blog.naver.com · 2018.08.02
-
큐를 이용한 대기순번 시뮬레이션 프로그램
[MAX_QUEUE_SIZE]; int front, rear; }QueueType; QueueType queue; void error(const char *message) { fprintf
blog.naver.com · 2018.08.27
-
자료구조 덱 프로그램
struct DequeType { DlistNode *head; DlistNode *tail; }DequeType; void error(const char *message) { fprintf
blog.naver.com · 2018.08.18
-
연결된 큐 프로그램
QueueNode; typedef struct { QueueNode *front, *rear; }QueueType; void error(const char *message) { fprintf
blog.naver.com · 2018.08.13
-
c언어 자료구조 라인 에디터 프로그램
; typedef struct { ListNode *head; int length; }LinkedListType; void error(const char *message) { fprintf
blog.naver.com · 2018.08.01
-
연결된 스택 프로그램
*s, element data) { StackNode *temp = (StackNode *)malloc(sizeof(StackNode)); if (temp ==NULL) { fprintf
blog.naver.com · 2018.08.03
-
원형 큐 프로그램
struct { int front, rear; element queue[MAX_QUEUE_SIZE]; }QueueType; void error(const char *message) { fprintf
blog.naver.com · 2018.08.12
-
일반적인 배열 스택 프로그램
(s->top == (MAX_STACK_SEIZ - 1)); } void push(StackType *s, element item) { if (is_full(s)) { fprintf
blog.naver.com · 2018.08.02
블로그 결과 더보기 →