>> Delete No. 52214 article
No. 콘셸 스크립트 인데요~

등록 2002-07-08 15:53:00 By localhost     조회 4
이름 영규    

		factorial ()
{
if (( $1 <= 1))
then
return 1
else
typeset tmp
typeset result
(( tmp = $1 - 1 ))
factorial $tmp
(( result = $? * $1
return $result
fi
}
factorial 5
echo factorial 5=$?
 소스는 이거구여~ 당체 이해가 안되네여 콘셸(Korn shell) 입니다.
 주석이나 제가 이해 할수 있게 해주실분 있나여?
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved