자료구조 05 - Stack(스택) 연습문제
- 최초 등록일
- 2011.09.25
- 최종 저작일
- 2010.10
- 7페이지/ 한컴오피스
- 가격 1,000원
소개글
안녕하세요,
[C언어로 쉽게 풀어 쓴 자료구조] (Data structure in C) - 천인국 저, 생능출판사
의 각 단원의 연습 문제 및 중요한 소스코드 입니다.
저는 A+ 학점을 받지 않은 과목의 자료는 올리지 않습니다. 한글파일 및 소스코드가 함께
들어가있습니다. 2010년 자료라 믿고 받으시면 됩니다.
목차
없음
본문내용
목적
미로찾기 구현을 통해 스택에 대한 이해를 높일 수 있다.
제작 소스코드
gotoxy(int, int) 함수를 쓰기 위한 Turboc.h 의 내용
#ifndef TURBOC_HEADER
#define TURBOC_HEADER
#include
#include
#include
#include
#include
typedef enum { NOCURSOR, SOLIDCURSOR, NORMALCURSOR } CURSOR_TYPE;
void clrscr();
void gotoxy(int x, int y);
int wherex();
int wherey();
void setcursortype(CURSOR_TYPE c);
#define delay(n) Sleep(n)
#define randomize() srand((unsigned)time(NULL))/
#define random(n) (rand() % (n))
#ifndef TURBOC_PROTOTYPE_ONLY
void clrscr()
{
system("cls");
}
void gotoxy(int x, int y)
{
COORD Cur;
Cur.X=x;
Cur.Y=y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),Cur);
}
int wherex()
{
CONSOLE_SCREEN_BUFFER_INFO BufInfo;
GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE),&BufInfo);
return BufInfo.dwCursorPosition.X;
참고 자료
없음