|
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주 판매 이력 없음
|
|
#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주 판매 이력 없음
|
|
- Recursion
5주 - Sorting Performance analysis
6주 - Exercising Array
7주 - Evaluation of Expression
8주 - Circular Queue & Maze
9주 - Stack & Queue using Linked list
10주 - Equivalenece Class
11주 - Binary Search Tree
12주 - Priority Queue
13주 - Selection Tree
14주 - Union-Find Algorithm
|
- 페이지 5페이지
- 가격 1,000원
- 등록일 2010.05.28
- 파일종류 압축파일
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
공학용계산기\n"<<endl;
cout<<" 종료는 'quit' or 'exit' 를 치면 됨."<<endl;
while(1)
{
error=0;
INFIX_TO_POSTFIX in_to_post; //객체 생성
in_to_post.get_str(); //식 입력
in_to_post.conversion(); //식 후위 식으로 변환
POSTFIX post=in_to_post; //객체를 넘겨준다.
pos
|
- 페이지 13페이지
- 가격 2,000원
- 등록일 2004.11.22
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
C,D 로 문자형으로 입력,삭제하는 소스도 있으니
원하는 소스로 사용하세요^^
#include <stdio.h>
#include <malloc.h>
typedef struct node
{
int data;
struct node *next;
}NODE;
NODE *head = NULL;
int data;
int menu(void);
void Insert_Node(void
|
- 페이지 10페이지
- 가격 1,300원
- 등록일 2008.01.03
- 파일종류 압축파일
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
pop()
{
return stack[top--];
}
void print()
{
int i;
for(i=0;i<=top;i++)
printf("stack[0]=%d\n",stack[i]);
}
2)(★★) 위의 프로그램의 stack은 10개만 저장가능하다. 더 많은 데이터를 stack에 넣으면 무슨일이 벌어지나?
3) (★★★)문제 2)의 경우를 예방하기 위해서 코
|
- 페이지 6페이지
- 가격 5,000원
- 등록일 2010.06.11
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|