Skip to content

Commit 0b1fdbf

Browse files
committed
DEBUG 函数模板 sort() 错误 ISSUE Light-City#73
1 parent 9b6ac0e commit 0b1fdbf

File tree

1 file changed

+1
-1
lines changed
  • practical_exercises/10_day_practice/day8/函数模板

1 file changed

+1
-1
lines changed

practical_exercises/10_day_practice/day8/函数模板/例1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ using namespace std;
55

66
template <class T>
77
//实现降序
8-
void sort(T &a, int n){
8+
void sort(T *a, int n){
99
for (int i=0;i<n;i++){
1010
int p=i;
1111
for (int j=i;j<n;j++)

0 commit comments

Comments
 (0)