代码搜索:递归回溯

找到约 2,805 项符合「递归回溯」的源代码

代码结果 2,805
www.eeworm.com/read/320994/13414206

c 4.5-4.6.1.c

/*递归填充算法----扫描线算法扫描多边形*/ #include "Conio.h" #include "stdio.h" #include "graphics.h" #define closegr closegraph #define LEN sizeof (struct point) void initgr(void) /* BGI初始化 */ {int gd=DETECT
www.eeworm.com/read/306202/13749656

cpp recur.cpp

//Program 9 函数的递归调用 //设计者 古槿 #include "stdio.h" int recur(int n) { int num; if(n==1||n==0) { printf("%d ",1); return 1; } else { num=recur(n-1)+recur(n-2); printf("%
www.eeworm.com/read/493908/6384504

txt 例4.11.txt

例4.11 用递归方法求n!。 有了例4.10的基础,很容易写出本题的程序: #include using namespace std; long fac(int); //函数声明 int main( ) {int n; //n为需要求阶乘的整数
www.eeworm.com/read/155903/11839441

txt 例4.11.txt

例4.11 用递归方法求n!。 有了例4.10的基础,很容易写出本题的程序: #include using namespace std; long fac(int); //函数声明 int main( ) {int n; //n为需要求阶乘的整数
www.eeworm.com/read/257293/11934965

c tree_preorder_nrec.c

/* 树的先根周游的非递归算法*/ #include #include typedef int DataType; #define MAXNUM 20 /* 栈中最大元素个数 */ struct SeqStack { /* 顺序栈类型定义 */ DataType s[MAXNUM]; int t
www.eeworm.com/read/151211/12229569

txt 26.txt

采用递归算法删除带有多级子目录的目录 Option Explicit Private Sub Command1_Click() Dim strPathName As String strPathName = "" strPathName = InputBox("请输入需要删除的文件夹名称∶", "删除文件夹") If strPathName = "" Then Exit Sub
www.eeworm.com/read/25215/846100

c 11-5-2.c

#include //头文件 long nn(int n) //定义函数 { long f; if(n>1) f=n*nn(n-1); //递归调用 else f=1L; return f; } void main() //主函数 { int num; long y; num=6;
www.eeworm.com/read/453704/1637917

java controlflow.java

package book.basic; public class ControlFlow { /** 目标数字 */ public static int TARGET_NUMBER = 10; /** * 通过if条件语句和递归方法将n的值逐步变成TARGET_NUMBER */ public void ifstatement(int n) { System.out.pri
www.eeworm.com/read/242824/4534014

cpp binsearch2.cpp

int BinSearch2(int r[], int low, int high, int k) { if (low>high) return 0; //递归的边界条件 else { int mid=(low+high)/2; if (k
www.eeworm.com/read/347831/3162209

java controlflow.java

package book.basic; public class ControlFlow { /** 目标数字 */ public static int TARGET_NUMBER = 10; /** * 通过if条件语句和递归方法将n的值逐步变成TARGET_NUMBER */ public void ifstatement(int n) { System.out.pri