Skip to content

Commit 0e69d55

Browse files
Mooophypezy
authored andcommitted
Update ex10_12.cpp
1 parent 3de06c7 commit 0e69d55

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ch10/ex10_12.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! @Alan
1+
//! @Yue Wang
22
//! Exercise 10.12:
33
//! Write a function named compareIsbn that compares the isbn() members of two Sales_data objects.
44
//! Use that function to sort a vector that holds Sales_data objects.
@@ -11,8 +11,7 @@
1111
#include <numeric>
1212
#include "../ch07/ex7_26.h" // Sales_data class.
1313

14-
inline bool
15-
compareIsbn(const Sales_data &sd1, const Sales_data &sd2)
14+
inline bool compareIsbn(const Sales_data &sd1, const Sales_data &sd2)
1615
{
1716
return sd1.isbn().size() < sd2.isbn().size();
1817
}

0 commit comments

Comments
 (0)