2007-11-14 01:03:01 +00:00
|
|
|
#include <algorithm>
|
|
|
|
|
|
|
|
class Ordering {
|
|
|
|
public:
|
|
|
|
bool operator()(int a, int b) {
|
|
|
|
return a < b;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
void SortAscending(int array[], int size) {
|
|
|
|
std::sort(array, array + size, Ordering());
|
|
|
|
}
|
2010-07-27 08:22:49 +00:00
|
|
|
|
|
|
|
extern "C" int OverriddenCFunction(int i) __attribute__ ((weak));
|
|
|
|
extern "C" int OverriddenCFunction(int i) {
|
|
|
|
return i;
|
|
|
|
}
|