- 博客(2)
- 收藏
- 关注
原创 vector存放函数指针(c++primer里的题目)
#include<iostream>#include<string.h>#include<vector>using namespace std;int add(int a,int b)//加法{ return a+b;}int reduce(int a,int b)//减法{ return a-b;}int ride(int a,int b)//乘法{ return a*b;}int except(int a,int b.
2022-04-05 15:35:47
1376
原创 快速排序(c语言版)
快速排序c语言实现代码void QuickSort(int L,int R,int *arr){ if(L>=R) { return; } int left=L,right=R,pivot=arr[left]; while(left<right) { while(left<right&&arr[right]>pivot) { right--;
2022-03-29 14:16:23
751
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅