摘要: //猜拳,5局3胜,要求使用公用变量。 namespace 结构体复习_公用变量 { class Program {public int rz=0; public int dz = 0; public string bj(int a , int b) { int d = a - b; if (d 2 阅读全文
posted @ 2016-07-03 22:17 这都不是事 阅读(625) 评论(0) 推荐(0) 编辑
摘要: 递归 一、概念conception: 函数体内调用本函数自身,直到符合某一条件不再继续调用。 二、应满足条件factor: (1)有反复执行的过程(调用自身); (2)有跳出反复执行过程的条件(函数出口) 三、例子example 阶乘的计算n!= n*(n-1)*(n-2)*(n-3)*……*1(n 阅读全文
posted @ 2016-07-03 22:04 这都不是事 阅读(1601) 评论(0) 推荐(0) 编辑