Develop
2003.04.23 09:46
[c] 하노이탑 - 재귀함수
조회 수 9167 댓글 0
Tower of Hanoi - Recursive
#include<stdio.h> void move(int n, char from, char to, char c) { if(n>0){ move(n-1,from,c,to); printf("%d 디스크를 %c에서 %c로 이동n",n,from,to); move(n-1,c,to,from); } } void main() { int n; printf("몇개의 디스크 입니까? : "); scanf("%d",&n); move(n,'L','R','C'); }
-
[c] 디피-헬만 키교환(Diffie–Hellman key exchange) 샘플 코드.. ㅋㄷ
-
[mysql] 양력, 음력 DB데이터
-
[c] 파일(int fd)에서 개행문자 단위로 읽기 by 후리자
-
[c] 지폰(gphone) 소스.. 수정(암호화)
-
[c] 암호 알고리즘 소스..
-
[c] 시스템 보안 과제.. 시간(amc time) 변경
-
[switch] 시스코 카탈리스트(Cisco Catalyst) 2950 미러링 설정
-
[c] 네트워크 보안 프로그래밍 과제 (Server,Agent,Client)
-
[php] 탐색기와 같은 다이나믹 트리(xml/xsl 이용)
-
[js] 스타크래프트(starcraft)..
-
[js] 툴팁.. 좋은거.. (tooltip)
-
[web] URL 인코딩 방법.. 테이블.. ㅋㅋ