|
|
@ -222,7 +222,7 @@ void DoSortBook()
|
|
|
|
for (int j=books.length;j>0;j--)
|
|
|
|
for (int j=books.length;j>0;j--)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (books.elem[i].id>books.elem[j].id) {
|
|
|
|
if (books.elem[i].id>books.elem[j].id) {
|
|
|
|
auto temp=books.elem[i];books.elem[i]=books.elem[j];books.elem[j]=temp;}
|
|
|
|
Book temp=books.elem[i];books.elem[i]=books.elem[j];books.elem[j]=temp;}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cout << "*****************************" <<endl;
|
|
|
|
cout << "*****************************" <<endl;
|
|
|
|