|
#include <iostream.h>
template <class Data_type>
class Stack
{
public:
Stack(int Maxsize = Defaultsize);
~Stack();
int Isfull();
void Add(const Data_type& item);
int Isempty();
Data_type* Delete(Data_type& x);
void Print();
private:
void Stackfull();
void Stackem
|
- 페이지 1페이지
- 가격 1,000원
- 등록일 2006.02.21
- 파일종류 기타
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
typedef struct node
{
int data;
struct node *link;
}linked_node;
linked_node *new_ad, *temp, *head;
int init_struct()
|
- 페이지 1페이지
- 가격 1,000원
- 등록일 2005.02.28
- 파일종류 기타
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
c",&ch);
getchar();
system("clear");
break;
case 2:
del_result=del();
if(del_result == 0)
printf("원형 큐의 데이터가 없음!! \n");
else
printf("원형 큐의 데이터 삭제 완료!!\n");
printf("엔터키를 눌러주세요!!\n");
scanf("%c
|
- 페이지 10페이지
- 가격 1,300원
- 등록일 2004.10.11
- 파일종류 압축파일
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
c)
#include <stdio.h>
int A(int m, int n){
while (m != 0){
if (n == 0)
n = 1;
else
n = A(m, n-1);
m = m - 1;
}
return n+1;
}
void main(){
int x=0;
int y=0;
x = A(3,2);
y = A(2,3);
printf("A(3,2) = %d, A(2,3) = %d\n",x,y);
}
// 부록 하노이탑 문제
#include <stdio.h>
int hanoi(int n,char A,
|
- 페이지 9페이지
- 가격 500원
- 등록일 2016.01.13
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
#include<stdio.h>
void MoveDisk(int,char,char,char);
int main(void){
int n;
printf("Input Disk Number >> ");
scanf("%d",&n);
// MoveDisk로 n값과 x,y,z 문자를 넘긴다.
MoveDisk(n,'x','y','z');
return 0;
} 4주 - Recursion
|
- 페이지 5페이지
- 가격 1,000원
- 등록일 2010.05.28
- 파일종류 압축파일
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
// Maze
#include<stdio.h>
#define MAX_ROW 20
#define MAX_COL 20
#define MAX_STACK_SIZE (MAX_ROW*MAX_COL)
#define FALSE 0 // FALSE의 초기화
#define TRUE 1 // TRUE의 초기화
#define Empty -1
#define North 0
#define East 2
typedef struct{
int eRow;
int eCol;
int eDir;
}eleme
|
- 페이지 5페이지
- 가격 1,000원
- 등록일 2010.05.28
- 파일종류 압축파일
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
#include <stdio.h>
#include <string.h>
#define MAX_STACK_SIZE 100 // stack의최대크기
#define MAX_EXPR_SIZE 100 // 수식의최대크기
/* 사용될operation */
typedef enum {
lparen, rparen, uplus, uminus, power, times, divide, mod, plus, minus, eos, operand
}precedence;
/* Token(연
|
- 페이지 5페이지
- 가격 1,500원
- 등록일 2010.05.28
- 파일종류 압축파일
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
#include <stdio.h>
#define INPUT_SIZE 10
#define FLOAT_SIZE 32
typedef union {
float floatType;
unsigned long bit32Type;
}UFLOAT;
float strTofloat(char* str);
void printBit_Float(float userRealNum);
int main()
{
char inputStr[11] = {0};
float outputNum = 0.0;
// 입력받기
printf("
|
- 페이지 5페이지
- 가격 1,000원
- 등록일 2010.05.28
- 파일종류 압축파일
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
c); //모든원소를 0 으로.
실행결과 화면
[A]
7 6 3
1 3 4
3 9 2
[B]
7 6 3 1
3 4 3 9
2 3 2 4
[A*B]
73 75 45 73
24 30 20 44
52 60 40 92
[I]
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
|
- 페이지 10페이지
- 가격 1,500원
- 등록일 2005.01.05
- 파일종류 압축파일
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
ode;
for (int i=1; i < answerDel-1; preNode=preNode->next,i++);
nextNode = preNode->next;
preNode->next = newmakeNode;
newmakeNode->next = nextNode;
newmakeNode->input(); }
else if (answerDel==1) { //삽입할 위치가 첫번째일때
node *newmakeNode = new node;
newmakeNode->next = head
|
- 페이지 5페이지
- 가격 1,000원
- 등록일 2006.01.04
- 파일종류 한글(hwp)
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|