자료구조 - stack과 queue
리포트 > 공학/기술
자료구조 - stack과 queue
한글
2015.03.24
10페이지
1. 자료구조 - stack과 queue.hwp
2. 자료구조 - stack과 queue.pdf
자료구조 - stack과 queue
INDEX

1.목적
2.소스코드
3.이용한 함수
4.출력결과
5.정리

1.목적
정수값을 입력한 정수의 개수대로 임의로 받아 큐에 enqueue,dequeue 하여 출력값을 txt 파일에 출력한다. 다시 같은 값을 스택에 push 한 후, 다시 pop 하여 그 값들이 역순으로 txt 파일로 출력되도록 한다.
2.소스코드

헤더파일1 //ArrayBaseStack.h
#ifndef __AB_STACK_H__
#define __AB_STACK_H__

#define TRUE 1
#define FALSE 0
#define STACK_LEN 100

typedef int Data;

typedef struct _arrayStack
{
Data stackArr[STACK_LEN];
int topIndex;
}ArrayStack;
typedef ArrayStack Stack;
void StackInit(Stack * pstack);
int SIsEmpty(Stack * pstack);

void SPush(Stack * pstack,Data data);
Data SPop(Stack *pstack);
Data SPeek(Stack *pstack);

#endif
헤더파일2//CircularQueue.h
#ifndef __c_QUEUE_H__
#define __c_QUEUE_H__

#define TRUE 1
#define FALSE 0
#define QUE_LEN 1000
typedef int Data;

typedef struct _cQueue
{
int front;
int rear;
Data queArr[QUE_LEN];
}CQueue;

typedef CQueue Queue;

void QueueInit(Queue * pq);
int QIsEmpty(Queue * pq);

void Enqueue(Queue * pq,Data data);
Data Dequeue(Queue * pq);
....
[자격증시험] 정보처리기사 2006년5워14일 기출.. 한국인공지능소프트웨어산업협회 현대퓨처넷 11..
[자료구조]linked list 이용하여 Queue 구현 레.. 운영체제
프로그래밍 - 자료구조 스택큐 C언어 코딩 2025 이수페타시스 설계 직무(신입) 면접족보, ..
현대퓨처넷 11기 채용연계형 MSA기반 Full Stac.. 연료전지에 대해서 A+자료
(A+)OSI 7-Layer 및 TCP/IP 계층 비교 2025년 LIG넥스원 SW 서류합격 자기소개서 (합..
(현대오토에버 면접자료) Solution Architect -.. 2025 한국알프스 소프트웨어설계(신입) 면접질..
의식의 수준(의식, 전의식, 무의식)과 성격의 .. 자료구조 sorting 비교
 
물리학 실험 보고서 - 관성모..
화학실험 - 비타민 C의 정량
결과 - 요오드 적정법
RC 저역통과 및 고역통과 필터
전자회로설계 - 저역통과 필터..
전자회로 4가지 필터 실험