|
3.도시락 완료 4.종료\\n\");
printf(\"원하는 서비스의 번호를 입력해 주세요 : \");
scanf(\"%d\", &input) ;
switch(input) {
case 1 :
enqueue(); break;
case 2 :
list_view(); break;
case 3 :
dequeue(); break;
case 4 :
printf(\"종료합니다.\\n\"); break; //종료
}
}
}
출력화면
|
- 페이지 4페이지
- 가격 9,660원
- 등록일 2013.12.30
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
큐가 꽉 찼는지 확인할 때 쓰이는 함수로 쓰임새는 위의 Stack과 같다.
⑧ 위의 함수들을 구현해보고 큐를 완성시킨다.
3. 소스코드 & 화면프린트
1) Stack
1
2
3
전체화면
push() 와 prt()
pop() 과 is_empty()
2) Queue
1
2
3
전체화면
입력과 출력
첫 번째 값 확
|
- 페이지 5페이지
- 가격 2,000원
- 등록일 2009.04.10
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
element item){
queue_pointer temp = (queue_pointer) malloc(sizeof(queue));
if(IS_FULL(temp)) fprintf(stderr,"the memory is full\n");
else{
temp->item = item;
temp->link = NULL;
if(*front)
(*rear)->link=temp;
else
*front=temp;
*rear = temp;
}
} 리스트
|
- 페이지 1페이지
- 가격 2,000원
- 등록일 2010.01.21
- 파일종류 기타
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
// Queue에 x을 삽입하는 알고리즘
// Queue : 최대 크기가 MaxSize인 배열
// MaxSize : 큐의 크기
// Rear : 큐에 마지막으로 삽입된 원소의 위치를 가리킨다.
// x : 큐에 삽입할 자료
template <class KeyType>
void Queue<KeyType>::Add(const KeyType& x)
// Queue
|
- 페이지 6페이지
- 가격 500원
- 등록일 2004.05.23
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#define SIZE 5
int init_Q();
int insert_Q(char insert_data);
int delete_Q();
int print_Q();
int isempty();
int front_exam();
typedef struct Q_node{
int data;
Q_node *link;
}queue_node;
queue_node *new
|
- 페이지 1페이지
- 가격 1,000원
- 등록일 2005.02.28
- 파일종류 기타
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|