摘要:着急用所以直接扒了一个C++算法翻译成了ruby…暂记
阅读全文
摘要:原文地址:http://blog.csdn.net/ggxxkkll/article/details/8661569原作者的讲解很详细,看过受益很大。 1 #include "stdafx.h" 2 #include "stdlib.h" 3 #include 4 using namespace...
阅读全文
摘要:原文地址:http://blog.csdn.net/zhaoxianyong/article/details/7165386 1 #include "stdafx.h" 2 #include "stdlib.h" 3 4 struct BiTreeNode 5 { 6 int ...
阅读全文
摘要:原文地址:http://blog.csdn.net/hguisu/article/details/7674195 1 #include "stdafx.h" 2 #include "stdlib.h" 3 #include 4 #include 5 using namespace st...
阅读全文
摘要:原文地址:http://blog.csdn.net/hguisu/article/details/7674195 1 ///栈的顺序存储,c++类实现 2 #include "stdafx.h" 3 #include "stdlib.h" 4 #include 5 using namespace ...
阅读全文
摘要:参考文章:http://blog.csdn.net/hguisu/article/details/7673703 1 #include "stdafx.h" 2 #include "stdlib.h" 3 #include 4 5 #define TRUE 1 6 #define F...
阅读全文
摘要://c实现 1 #include "stdafx.h" 2 #include "stdlib.h" 3 4 5 int _tmain(int argc, _TCHAR* argv[]) 6 { 7 int a[10] = {0,1,3,4,6,7,9,11,12,15}; 8 ...
阅读全文
摘要:1 #include "stdafx.h" 2 #include "stdlib.h" 3 4 int Partition(int *arr,int _low,int _high); 5 void QSort(int *arr,int low,int high); 6 void QuickSor...
阅读全文
摘要://c 实现 1 #include "stdafx.h" 2 #include "stdlib.h" 3 4 void swap(int& a,int& b) 5 { 6 int t =a; 7 a = b; 8 b = t; 9 }10 int _tmain(int a...
阅读全文
摘要://C 实现 1 #include "stdafx.h" 2 #include "stdlib.h" 3 4 void swap(int* a,int* b) 5 { 6 int t =*a; 7 *a = *b; 8 *b = t; 9 }10 int _tmain(in...
阅读全文
摘要://C 实现 1 #include "stdafx.h" 2 #include "stdlib.h" 3 4 int _tmain(int argc, _TCHAR* argv[]) 5 { 6 int arr[6] ={0,5,3,4,6,2}; 7 int i,j; 8...
阅读全文