DEBUG 函数模板 sort() 错误 ISSUE #73

This commit is contained in:
hu.fwh 2020-09-10 00:47:38 +08:00
parent 9b6ac0ef15
commit 0b1fdbfb8f

View File

@ -5,7 +5,7 @@ using namespace std;
template <class T>
//实现降序
void sort(T &a, int n){
void sort(T *a, int n){
for (int i=0;i<n;i++){
int p=i;
for (int j=i;j<n;j++)