摘要:
BinaryTree.h 1 #ifndef BINARYTREE_H 2 #define BINARYTREE_H 3 4 #include 5 using namespace std; 6 7 const int MAX_NODES_SIZE = 100; 8 9 template class BinaryTree; 10 11 template class ... 阅读全文
摘要:
GenList.hCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 #ifndef GENLIST_H 2 #define GENLIST_H 3 4 #include 5 6 #define HEAD 0 7 #define ... 阅读全文
摘要:
Fibonacci函数定义: n = 0, fib(n) = 0; n = 1, fib(n) = 1; 其他, fib(n) = fib(n-1)+fib(n-2)
Ackerman函数定义: m = 0, ack(m, n) = n+1; n = 0, ack(m, n) = ack(m-1, n); 其他, ack(m, n) = ack(m-1, ack(m, n-1)) 阅读全文