과 ¶
- array를 그려보
- 래 드를 로 recursive function 노 뮬 로그램 라(동 력다, 변를 를 게 H_n = 2*H_n-1 + 1 맞는 답 나 보다.)
#include <stdio.h> int count=0; void hanoi(char from,char to,char mid,int num){ if(num>0){ // Input your code count++; } } int main(){ int numOfRings; printf(" 개: "); scanf("%d",&numOfRings); hanoi('A','C','B',numOfRings); printf(" : %d\n",count); return 0; }
드므로 러나면
- 봤만 매개변 는 궁. 때는 num로 고 때는 n로 것; 그리고 변를 리 값 것 같데... - 김경
기: ¶
가르 내 ¶
- recursive function
- random()
- array
- passing by value(call by value )
- Memory array
- index는 0부 다
- declaration과
- passing by value(call by value )
기 반 및 고 ¶
- 로 날밤고 겠다. 먹고 는 느낌다.