摘要:
1 /* 2 二分法查找 3 查找有序数组datas中数字number在第几位 4 若datas[j]=number,则返回j;如果不存在j使datas[j]=number,则返回-1; 5 */ 6 int binarySearch(int datas[],int size,int ... 阅读全文
posted @ 2015-03-24 16:50
薛晓东
阅读(92)
评论(0)
推荐(0)
摘要:
1 int* insertionSort(int datas[],int len) 2 { 3 int* temp = new int[len];// 定义一个指向数组的指针 4 int i,x; 5 6 for(int j=1;j=0)11 {12 ... 阅读全文
posted @ 2015-03-24 16:47
薛晓东
阅读(117)
评论(0)
推荐(0)
摘要:
1 int* insertionSort(int datas[],int len) 2 { 3 int* temp = new int[len];// 定义一个指向数组的指针 4 int i,x; 5 6 for(int j=1;j=0)11 {12 ... 阅读全文
posted @ 2015-03-24 16:17
薛晓东
阅读(482)
评论(0)
推荐(0)
摘要:
1 #include 2 3 void function(int datas[],int len) 4 { 5 for(int j=0;j<len;j++) 6 { 7 cout << datas[j] << endl; 8 } 9 }10 11 int... 阅读全文
posted @ 2015-03-24 15:02
薛晓东
阅读(201)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 4 int main(int argc, char* argv[]) 5 { 6 cout usingnamespacestd;floatFuncP(inta,floatb){returna+b;}intFuncNP(){return3... 阅读全文
posted @ 2015-03-24 11:12
薛晓东
阅读(131)
评论(0)
推荐(0)
摘要:
There are five data types for C: void, integer, float, double, and char.TypeDescriptionvoidassociated with no data typeintintegerfloatfloating-point n... 阅读全文
posted @ 2015-03-24 10:27
薛晓东
阅读(125)
评论(0)
推荐(0)