We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3de06c7 commit 0e69d55Copy full SHA for 0e69d55
ch10/ex10_12.cpp
@@ -1,4 +1,4 @@
1
-//! @Alan
+//! @Yue Wang
2
//! Exercise 10.12:
3
//! Write a function named compareIsbn that compares the isbn() members of two Sales_data objects.
4
//! Use that function to sort a vector that holds Sales_data objects.
@@ -11,8 +11,7 @@
11
#include <numeric>
12
#include "../ch07/ex7_26.h" // Sales_data class.
13
14
-inline bool
15
-compareIsbn(const Sales_data &sd1, const Sales_data &sd2)
+inline bool compareIsbn(const Sales_data &sd1, const Sales_data &sd2)
16
{
17
return sd1.isbn().size() < sd2.isbn().size();
18
}
0 commit comments