[윈도우 프로그램] C++ API를 이용한 스택프로그램
- 최초 등록일
- 2003.12.12
- 최종 저작일
- 2003.12
- 1페이지/ 압축파일
- 가격 1,000원
소개글
window API를 이용한 스택의 구현.
목차
없음
본문내용
#include "stdafx.h"
#include "stack.h"
#include <iostream.h>
//----------------------------------------------------------------------
// Stack::Stack
// The constructor for the Stack class.
//
// "sz" -- maximum number of elements on the Stack at any time
//----------------------------------------------------------------------
Stack::Stack(short sz) {
cout << "array constructor is called\n";
// Initialize the data members of the stack object.
size = sz;
top = 0;
buffer = new int[size]; // allocate an array of integers.
}
//----------------------------------------------------------------------
// Stack::~Stack
// The destructor for the Stack class. Just get rid of the array we
// allocated in the constructor.
//--------------------------------
참고 자료
없음
압축파일 내 파일목록
stack.cpp
stack.h
StdAfx.cpp
StdAfx.h
WinStack.aps
WinStack.cpp
WinStack.dsp
WinStack.dsw
WinStack.ncb
WinStack.opt
WinStack.plg
WinStack.rc
ReadMe.txt
resource.h