代码搜索:recursive

找到约 2,177 项符合「recursive」的源代码

代码结果 2,177
www.eeworm.com/read/361386/10055485

loop

/* error: mutually recursive types thet do not pass through record or array */ let type a=b type b=a type c=int type d=a in "" end
www.eeworm.com/read/361386/10055511

tig test17.tig

/* error: definition of recursive types is interrupted */ let /* define a tree */ type tree ={key: int, children: treelist} var d:int :=0 type treelist = {hd: tree, tl: treelist} in d end
www.eeworm.com/read/361386/10055512

tig test16.tig

/* error: mutually recursive types thet do not pass through record or array */ let type a=c type b=a type c=d type d=a in "" end
www.eeworm.com/read/361386/10055548

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/358682/10182178

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/358191/10194495

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
www.eeworm.com/read/358191/10194660

cpp rknap.cpp

// dynamic programming recursive knapsack #include #include #include "dosmax.h" // has max() and min() int p[6] = {0, 6, 3, 5, 4, 6}; int w[6] = {0, 2, 2, 6, 5, 4};
www.eeworm.com/read/355030/10300305

cpp scoperes.cpp

//: C04:Scoperes.cpp // From Thinking in C++, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 1999 // Copyright notice in Copyright.txt // Global scope resolution int a;
www.eeworm.com/read/161587/10394658

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
www.eeworm.com/read/161587/10395167

cpp rknap.cpp

// dynamic programming recursive knapsack #include #include #include "dosmax.h" // has max() and min() int p[6] = {0, 6, 3, 5, 4, 6}; int w[6] = {0, 2, 2, 6, 5, 4};