DEBUG 函数模板 sort() 错误 ISSUE #73
This commit is contained in:
parent
9b6ac0ef15
commit
0b1fdbfb8f
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user