U E D R , A S I H C RSS

새싹교실/2011/學高/8회차

  • 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; 그리고 것 같데... -
    • ... 더는 . 대로 보라는 미로 count를 기 때문 들기보단 는것 것 같 렇게 다. -

기:

가르

  • recursive function
  • random()
  • array
    • passing by value(call by value )
    • Memory array
    • index는 0부
    • declaration과

기 반 및 고

  • 로 날밤 겠다. 먹고 는 느낌다.

기:

기 반 및 고

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:43
Processing time 0.0106 sec