2007年3月30日
摘要: 又是一个递归算法问题:一个射击运动员打靶,靶一共有10环,连开10枪打中90环的可能行有多少种?以下是解决这个问题的VB.NET代码Module Module1 '用来记录每次打几环的数组 Dim fire(9) As Integer '用来记录当前打第几枪 Dim num As Integer = 0 '用来记录一共有多少种可能 Dim count As I... 阅读全文
posted @ 2007-03-30 16:01 暴风雨 阅读(1340) 评论(0) 推荐(0) 编辑