[Engineering] 프로그래밍 - data(자료)구조 스택큐 C언어 코딩
페이지 정보
작성일 19-08-07 03:57
본문
Download : [공학] 프로그래밍 - 자료구조 스택큐 C언어 코딩.hwp
[Engineering] 프로그래밍 - data(자료)구조 스택큐 C언어 코딩
[공학] 프로그래밍 - 자료구조 스택큐 C언어 코딩 , [공학] 프로그래밍 - 자료구조 스택큐 C언어 코딩공학기술레포트 , [공학] 프로그래밍 - 자료구조 스택큐 C언어 코딩
Download : [공학] 프로그래밍 - 자료구조 스택큐 C언어 코딩.hwp( 76 )
설명
레포트/공학기술
순서
[Engineering] 프로그래밍 - data(자료)구조 스택큐 C언어 코딩
◆ 소스코드 ◆
/ 연결스택과 큐 호로그램. 32051492 정국형. jgxxxx@xxxx.co.kr /
#include`stdio.h`
int pushstack(); //스택에 데이터를 입력하는 함수
void stacklink(struct stack data); // 데이터를 스택 링크 리스트로 이어주는 함수
void stackprint(); //스택의 내용을 보여주는 함수
void deletestack(); //스택의 데이터를 삭제 하는 함수
void pushqueue(); //큐에 데이터를 입력하는 함수
void queuelink(struct queue data); // 데이터를 큐 링크 리스트로 이어주는 함수
void deletequeue(); // 큐에 데이터를 삭제 하는 함수
int queueprint(); //큐의 내용을 보여주는 함수
struct stack
{
int data;
struct stack nextlink;
};
struct stack top;
struct queue
{
int data;
struct queue nextqueue;
};
struct queue front;
struct queue rear;
int main()
{
int number;
while(1)
{
printf(`₩t메뉴₩n`);
printf(`1.스택에 삽입 2.큐에 삽입₩n`);
printf(`3.스택에서 삭제 4.큐에서 삭제₩n`);
printf(`5.스택 내용 보기 6.큐 내용 보기₩n`);
printf(`₩n`);
scanf(`%d`, &number);
if(number1)
{
pushstack();
}
else if(number2)
{
pushqueue();
}
else if(number3)
{
deletestack…(drop)
[공학],프로그래밍,-,자료구조,스택큐,C언어,코딩,공학기술,레포트
다.


