代码搜索:递归回溯

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

代码结果 2,805
www.eeworm.com/read/355913/10241618

cpp 8_74.cpp

#include #include template void QuickSort(T*const array,int low,int high) { //递归实现 int i=low,j=high; T temp=array[low]; //取第一个对象为进行调整的标准对象 while(i
www.eeworm.com/read/421312/10741759

c al7_5.c

/*案例代码文件名:AL7_5.C*/ /*功能:通过函数的递归调用计算阶乘*/ long power(int n) {long f; if(n>1) f=power(n-1)*n; else f=1; return(f); } main() {int n; long y; printf("input a inteage
www.eeworm.com/read/463443/7180787

c queens8.c

/*递归实现*/ #include static char queen[8][8]; static int a[8]; static int b[15];//主对角线 static int c[15];//从对角线 static int iQueenNum=0; void qu(int i);//i代表行 int main() { int iLine,iC
www.eeworm.com/read/455392/7372655

c 3_4_4.c

//用递归调用的方式,计算x的n次方幂: #include unsigned long power(int x,int n) reentrant { unsigned long p; for (p=1L;n>0;--n) p*=x; return(p); } main () { int x,n; input(x,n); //调用输入函数(略)输
www.eeworm.com/read/451351/7466841

java ex5_12.java

//5.12(选择排序的递归写法) public class Ex5_12{ public static void main (String[] args) { int[]list={2,9,5,4,8,1,6}; System.out.print("排序前的序列为:"); for(int i=0;i
www.eeworm.com/read/442029/7661135

m spirall.m

function [z,A,L,zp]=spirall(z,A,L,zp); % 递归法生成涡旋曲线 % L 初始线长 % Example: % [z,A,L,zp]=spirall(0,0,100,0); % 算法参见 % http://graphics.shu.edu.cn/course/fractal/program/p3-4-1-1.htm sc=0
www.eeworm.com/read/297292/8032698

txt 06-16.txt

/* 范例:6-16 */ #include #include void main() {/* 这是一个if的程序递归*/ int a; printf("请输入一值"); scanf("%d",&a); if(a>5) /* 将if (a>5) 的statement展开成为以下statement区块,变成一个if的程序递
www.eeworm.com/read/195683/8135810

c al7_5.c

/*案例代码文件名:AL7_5.C*/ /*功能:通过函数的递归调用计算阶乘*/ long power(int n) {long f; if(n>1) f=power(n-1)*n; else f=1; return(f); } main() {int n; long y; printf("input a inteage
www.eeworm.com/read/333542/12676096

txt 6-16.txt

/* 范例:6-16 */ #include #include void main() {/* 这是一个if的程序递归*/ int a; printf("请输入一值"); scanf("%d",&a); if(a>5) /* 将if (a>5) 的statement展开成为以下statement区块,变成一个if的程序递
www.eeworm.com/read/332926/12717031

c 6.42.c

6.42③ 编写递归算法,计算二叉树中叶子结点的数目。 要求实现下列函数: void Leaves(BiTree bt, int &x); /* Count the leaf node of the BiTree */ /* whose root node is bt to x. */ 二叉链表类型定义: typedef struct BiTNode {