Joined
Last Seen
0 Reputation Points
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #107.70K
1 Posted Topic
You might try somthing like this.... struct some_struct { int value; } arr[100]; bool sort_fn(some_struct a, some_struct b) { return (a.value < b.value); } main() { std::sort(arr, arr+len, sort_fn); }
The End.
Jim_532