代码搜索:recursive
找到约 2,177 项符合「recursive」的源代码
代码结果 2,177
www.eeworm.com/read/467642/7006510
tig test5.tig
/* define valid recursive types */
let
/* define a list */
type intlist = {hd: int, tl: intlist}
/* define a tree */
type tree ={key: int, children: treelist}
type treelist = {hd: tree, tl: treelist
www.eeworm.com/read/463474/7180274
m genhaos.m
function fx=genhaos(x,rParam)
%chaos generator with a recursive structure
%y0=[0.1 0 0]
%parameters
c1=rParam;%2
c2=1;
c3=1;
%initialization
fx=zeros(1,3);
%DDE
bidon=c1*x(1)+c2*x(2)+c
www.eeworm.com/read/460384/7252224
f90 e_624_02.f90
INTEGER :: n=0
CHARACTER(LEN=1) :: a,b,c
a='A';b='B';c ='C'
DO WHILE(n
www.eeworm.com/read/460384/7252247
f90 e_624_03.f90
INTEGER :: n=0
INTEGER, ALLOCATABLE :: CC(:)
DO WHILE(n
www.eeworm.com/read/459616/7270516
cpp rsum.cpp
// recursive sum of n numbers
#include
template
T Rsum(T a[], int n)
{// Return sum of numbers a[0:n - 1].
if (n > 0)
return Rsum(a, n-1) + a[n-1];
return 0;
}
voi
www.eeworm.com/read/459616/7270674
cpp rknap.cpp
// dynamic programming recursive knapsack
#include
#include "dosmax.h"
int p[6] = {0, 6, 3, 5, 4, 6};
int w[6] = {0, 2, 2, 6, 5, 4};
int x[6];
int n = 5;
int c = 10;
int F(int i, int y
www.eeworm.com/read/458493/7295810
m recursiveindent.m
function recursiveIndent(maxLevel,level)
% recursiveIndent Demonstration of a recursive function
%
% Synopsis: recursiveIndent
% recursiveIndent(maxLevel)
%
% Input: maxLevel =
www.eeworm.com/read/458488/7296186
m recursiveindent.m
function recursiveIndent(maxLevel,level)
% recursiveIndent Demonstration of a recursive function
%
% Synopsis: recursiveIndent
% recursiveIndent(maxLevel)
%
% Input: maxLevel =
www.eeworm.com/read/456533/7345836
cpp recur.cpp
// recur.cpp -- use recursion
#include
void countdown(int n);
int main()
{
countdown(4); // call the recursive function
return 0;
}
void countdown(int n)
{
www.eeworm.com/read/456533/7346143
cpp recur.cpp
// recur.cpp -- use recursion
#include
void countdown(int n);
int main()
{
countdown(4); // call the recursive function
return 0;
}
void countdown(int n)
{