10 lines
249 B
C++
10 lines
249 B
C++
#include "pip.h"
|
|
#include <algorithm>
|
|
|
|
int main(int argc, char * argv[]) {
|
|
PIVector<int> v{5, 7, 4, 2, 8, 6, 1, 9, 0, 3};
|
|
v.sort([](const int & a, const int & b){return a > b;});
|
|
piCout << v; // 9, 8, 7, 6, 5, 4, 3, 2, 1, 0
|
|
return 0;
|
|
}
|