목차
[Debug]
QUEUE.CPP
QUEUE.dsp
QUEUE.dsw
QUEUE.ncb
QUEUE.opt
QUEUE.plg
1.10MB
파일 13, 폴더 1
QUEUE.CPP
QUEUE.dsp
QUEUE.dsw
QUEUE.ncb
QUEUE.opt
QUEUE.plg
1.10MB
파일 13, 폴더 1
본문내용
QUEUE.CPP
// *********
// * QUEUE *
// *********
#include
#include
#define Q 7 //QUEUE의 크기
void Input(); //입력 함수
void Delete(); //삭제 함수
void Exit(); //종료 함수
void Print(); //출력 함수
void Exception(); //1,2,9번을 제외한 나머지 번호 입력시 처리 함수
int array[Q];
int front=-1; //front 초기 상태 , 데이타 삭제시 1증가
int rear=front; //rear 초기 상태 , 데이타 입력시 1증가
void main()
{
int num;
printf("*********\n");
printf("* QUEUE *\n");
printf("*********\n\n");
while(1){
printf("\n[1]입력 [2]삭제 [9]종료\n");
fflush(stdin);
scanf("%d",&num);
//system("cls");
switch(num)
{
case 1 : Input();
break;
case 2 : Delete();
break;
case 9 : Exit();
exit(0);
default: Exception();
break;
}
}
}
void Input()
{
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
QUEUE.dsp
# Microsoft Developer Studio Project File - Name="QUEUE" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
CFG=QUEUE - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "QUEUE.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "QUEUE.mak" CFG="QUEUE - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "QUEUE - Win32 Release" (based on "Win32 (x86) Console Application")
!MESSAGE "QUEUE - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
// *********
// * QUEUE *
// *********
#include
#include
#define Q 7 //QUEUE의 크기
void Input(); //입력 함수
void Delete(); //삭제 함수
void Exit(); //종료 함수
void Print(); //출력 함수
void Exception(); //1,2,9번을 제외한 나머지 번호 입력시 처리 함수
int array[Q];
int front=-1; //front 초기 상태 , 데이타 삭제시 1증가
int rear=front; //rear 초기 상태 , 데이타 입력시 1증가
void main()
{
int num;
printf("*********\n");
printf("* QUEUE *\n");
printf("*********\n\n");
while(1){
printf("\n[1]입력 [2]삭제 [9]종료\n");
fflush(stdin);
scanf("%d",&num);
//system("cls");
switch(num)
{
case 1 : Input();
break;
case 2 : Delete();
break;
case 9 : Exit();
exit(0);
default: Exception();
break;
}
}
}
void Input()
{
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
QUEUE.dsp
# Microsoft Developer Studio Project File - Name="QUEUE" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
CFG=QUEUE - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "QUEUE.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "QUEUE.mak" CFG="QUEUE - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "QUEUE - Win32 Release" (based on "Win32 (x86) Console Application")
!MESSAGE "QUEUE - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
추천자료
C++로 구현한 중매프로그램
렌트카테이블 해쉬함수 C++프로그래밍(파일처리론)
C++ 하노이 탑 성능지수 측정 및 평가
C++ 피보나치 함수의 성능지수(복잡도) 측정 및 평가
히스토그램 평활화 using C++
c++ 배열 소스 레포트
데이타베이스 MFC 연동 프로젝트(DB MFC) 렌트차량관리프로그램
c++ vector와 matrix class 구현
c++언어 프로그래밍 코딩 자작
BlackJack(블랙잭) 카드게임 구현, C++
C++ 공학용계산기
2011년 1학기 Visual C++프로그래밍 기말시험 핵심체크
C++에 대한 이해, 최종 결과 보고서 - 소코반(푸시푸시)-
빙고게임 만들기 (C++/visual 6.0)
소개글